com.intellij.ide.projectView
Class ProjectViewNode<Value>
java.lang.Object
com.intellij.ide.util.treeView.NodeDescriptor
com.intellij.ide.util.treeView.AbstractTreeNode<Value>
com.intellij.ide.projectView.ProjectViewNode<Value>
- All Implemented Interfaces:
- NavigationItem, Navigatable
public abstract class ProjectViewNode<Value>
- extends AbstractTreeNode<Value>
A node in the project view tree.
- See Also:
TreeStructureProvider.modify(com.intellij.ide.util.treeView.AbstractTreeNode, java.util.Collection, com.intellij.ide.projectView.ViewSettings)
| Methods inherited from class com.intellij.ide.util.treeView.AbstractTreeNode |
canNavigate, canNavigateToSource, canRepresent, equals, getChildren, getElement, getFileStatus, getName, getParent, getParentDescriptor, getParentValue, getPresentation, getProject, getTestPresentation, getToolTip, getValue, hashCode, navigate, setParent, setParentDescriptor, setValue, shouldUpdateData, update, update, valueIsCut |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ProjectViewNode
protected ProjectViewNode(Project project,
Value value,
ViewSettings viewSettings)
- Creates an instance of the project view node.
- Parameters:
project - the project containing the node.value - the object (for example, a PSI element) represented by the project view nodeviewSettings - the settings of the project view.
isAlwaysShowPlus
public boolean isAlwaysShowPlus()
- Overrides:
isAlwaysShowPlus in class AbstractTreeNode<Value>
isAlwaysExpand
public boolean isAlwaysExpand()
- Overrides:
isAlwaysExpand in class AbstractTreeNode<Value>
contains
public abstract boolean contains(VirtualFile file)
- Checks if this node or one of its children represents the specified virtual file.
- Parameters:
file - the file to check for.
- Returns:
- true if the file is found in the subtree, false otherwise.
getSettings
public final ViewSettings getSettings()
wrap
public static java.util.List<AbstractTreeNode> wrap(java.util.List objects,
Project project,
java.lang.Class<? extends AbstractTreeNode> nodeClass,
ViewSettings settings)
createTreeNode
public static AbstractTreeNode createTreeNode(java.lang.Class<? extends AbstractTreeNode> nodeClass,
Project project,
java.lang.Object value,
ViewSettings settings)
throws java.lang.NoSuchMethodException,
java.lang.InstantiationException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException
- Throws:
java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
someChildContainsFile
protected boolean someChildContainsFile(VirtualFile file)