public abstract class FavoriteNodeProvider
extends java.lang.Object
com.intellij.favoriteNodeProvider extension point.| Modifier and Type | Field and Description | 
|---|---|
static ExtensionPointName<FavoriteNodeProvider> | 
EP_NAME  | 
| Constructor and Description | 
|---|
FavoriteNodeProvider()  | 
| Modifier and Type | Method and Description | 
|---|---|
AbstractTreeNode<?> | 
createNode(Project project,
          java.lang.Object element,
          ViewSettings viewSettings)  | 
abstract java.lang.Object [] | 
createPathFromUrl(Project project,
                 java.lang.String url,
                 java.lang.String moduleName)
Returns the path of node objects to be added to the favorites tree for the specified persisted URL and module name. 
 | 
abstract boolean | 
elementContainsFile(java.lang.Object element,
                   VirtualFile vFile)
Checks if the specified project view node element (the value of  
AbstractTreeNode) contains
 the specified virtual file as one of its children. | 
abstract java.lang.String | 
getElementLocation(java.lang.Object element)
Returns the location text (grey text in parentheses) to display in the Favorites view for the specified element. 
 | 
abstract java.lang.String | 
getElementModuleName(java.lang.Object element)
Returns the name of the module containing the specified element. 
 | 
abstract java.lang.String | 
getElementUrl(java.lang.Object element)
Returns the persistable URL for the specified element. 
 | 
abstract int | 
getElementWeight(java.lang.Object element,
                boolean isSortByType)
Returns the weight of the specified project view node element to use when sorting the favorites list. 
 | 
abstract java.util.Collection<AbstractTreeNode<?>> | 
getFavoriteNodes(DataContext context,
                ViewSettings viewSettings)  | 
abstract java.lang.String | 
getFavoriteTypeId()
Returns the identifier used to persist favorites for this provider. 
 | 
PsiElement | 
getPsiElement(java.lang.Object element)  | 
abstract boolean | 
isInvalidElement(java.lang.Object element)
Checks if the specified element is invalid and needs to be removed from the tree. 
 | 
public static final ExtensionPointName<FavoriteNodeProvider> EP_NAME
public abstract java.util.Collection<AbstractTreeNode<?>> getFavoriteNodes(DataContext context, ViewSettings viewSettings)
public AbstractTreeNode<?> createNode(Project project, java.lang.Object element, ViewSettings viewSettings)
public abstract boolean elementContainsFile(java.lang.Object element,
                                            VirtualFile vFile)
AbstractTreeNode) contains
 the specified virtual file as one of its children.element - the value element of a project view node.vFile - the file to check.element is not an element supported by this provider.public abstract int getElementWeight(java.lang.Object element,
                                     boolean isSortByType)
element - the element for which the weight is requested.element is not an element supported by this provider.public abstract java.lang.String getElementLocation(java.lang.Object element)
element - the element for which the location is requested.element is not an element supported by this provider.public abstract boolean isInvalidElement(java.lang.Object element)
element - the element to check.public abstract java.lang.String getFavoriteTypeId()
public abstract java.lang.String getElementUrl(java.lang.Object element)
public abstract java.lang.String getElementModuleName(java.lang.Object element)
public abstract java.lang.Object [] createPathFromUrl(Project project, java.lang.String url, java.lang.String moduleName)
project - the project to which the favorite is related.url - the loaded URL (initially returned from getElementUrl(java.lang.Object)).moduleName - the name of the module containing the element (initially returned from getElementModuleName(java.lang.Object))public PsiElement getPsiElement(java.lang.Object element)