com.intellij.ide.projectView
Class ProjectViewNode<Value>

java.lang.Object
  extended by com.intellij.ide.util.treeView.NodeDescriptor
      extended by com.intellij.ide.util.treeView.AbstractTreeNode<Value>
          extended by 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)

Field Summary
 
Fields inherited from class com.intellij.ide.util.treeView.AbstractTreeNode
myLocationString
 
Fields inherited from class com.intellij.ide.util.treeView.NodeDescriptor
myClosedIcon, myColor, myName, myOpenIcon, myProject
 
Constructor Summary
protected ProjectViewNode(Project project, Value value, ViewSettings viewSettings)
          Creates an instance of the project view node.
 
Method Summary
abstract  boolean contains(VirtualFile file)
          Checks if this node or one of its children represents the specified virtual file.
static AbstractTreeNode createTreeNode(java.lang.Class<? extends AbstractTreeNode> nodeClass, Project project, java.lang.Object value, ViewSettings settings)
           
 ViewSettings getSettings()
           
 boolean isAlwaysExpand()
           
 boolean isAlwaysShowPlus()
           
protected  boolean someChildContainsFile(VirtualFile file)
           
static java.util.List<AbstractTreeNode> wrap(java.util.List objects, Project project, java.lang.Class<? extends AbstractTreeNode> nodeClass, ViewSettings settings)
           
 
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 com.intellij.ide.util.treeView.NodeDescriptor
expandOnDoubleClick, getClosedIcon, getColor, getIndex, getOpenIcon, setIndex, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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 node
viewSettings - the settings of the project view.
Method Detail

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)