com.intellij.ide.util.treeView
Class AbstractTreeNode<Value>

java.lang.Object
  extended by com.intellij.ide.util.treeView.NodeDescriptor
      extended by com.intellij.ide.util.treeView.AbstractTreeNode<Value>
All Implemented Interfaces:
NavigationItem, Navigatable
Direct Known Subclasses:
ProjectViewNode

public abstract class AbstractTreeNode<Value>
extends NodeDescriptor
implements NavigationItem


Field Summary
protected  java.lang.String myLocationString
           
 
Fields inherited from class com.intellij.ide.util.treeView.NodeDescriptor
myClosedIcon, myColor, myName, myOpenIcon, myProject
 
Constructor Summary
protected AbstractTreeNode(Project project, Value value)
           
 
Method Summary
 boolean canNavigate()
           
 boolean canNavigateToSource()
           
 boolean canRepresent(java.lang.Object element)
           
 boolean equals(java.lang.Object object)
           
abstract  java.util.Collection<AbstractTreeNode> getChildren()
           
 java.lang.Object getElement()
           
 FileStatus getFileStatus()
           
 java.lang.String getName()
           
 AbstractTreeNode getParent()
           
 NodeDescriptor getParentDescriptor()
           
protected  java.lang.Object getParentValue()
           
 ItemPresentation getPresentation()
           
 Project getProject()
           
 java.lang.String getTestPresentation()
           
protected  java.lang.String getToolTip()
           
 Value getValue()
           
 int hashCode()
           
 boolean isAlwaysExpand()
           
 boolean isAlwaysShowPlus()
           
 void navigate(boolean requestFocus)
          Open editor and select/navigate to the object there if possible.
 void setParent(AbstractTreeNode parent)
           
 AbstractTreeNode setParentDescriptor(NodeDescriptor parentDescriptor)
           
 void setValue(Value value)
           
protected  boolean shouldUpdateData()
           
 boolean update()
           
protected abstract  void update(PresentationData presentation)
           
protected  boolean 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
 

Field Detail

myLocationString

protected java.lang.String myLocationString
Constructor Detail

AbstractTreeNode

protected AbstractTreeNode(Project project,
                           Value value)
Method Detail

getChildren

@NotNull
public abstract java.util.Collection<AbstractTreeNode> getChildren()

update

public final boolean update()
Specified by:
update in class NodeDescriptor

valueIsCut

protected boolean valueIsCut()

shouldUpdateData

protected boolean shouldUpdateData()

update

protected abstract void update(PresentationData presentation)

isAlwaysShowPlus

public boolean isAlwaysShowPlus()

isAlwaysExpand

public boolean isAlwaysExpand()

getElement

@Nullable
public final java.lang.Object getElement()
Specified by:
getElement in class NodeDescriptor

equals

public final boolean equals(java.lang.Object object)
Overrides:
equals in class java.lang.Object

hashCode

public final int hashCode()
Overrides:
hashCode in class java.lang.Object

getParent

public final AbstractTreeNode getParent()

setParent

public final void setParent(AbstractTreeNode parent)

setParentDescriptor

public final AbstractTreeNode setParentDescriptor(NodeDescriptor parentDescriptor)

getParentDescriptor

public final NodeDescriptor getParentDescriptor()
Overrides:
getParentDescriptor in class NodeDescriptor

getValue

public final Value getValue()

getProject

public final Project getProject()

setValue

public final void setValue(Value value)

getTestPresentation

public java.lang.String getTestPresentation()

getPresentation

public ItemPresentation getPresentation()
Specified by:
getPresentation in interface NavigationItem

getFileStatus

public FileStatus getFileStatus()
Specified by:
getFileStatus in interface NavigationItem

getName

public java.lang.String getName()
Specified by:
getName in interface NavigationItem

navigate

public void navigate(boolean requestFocus)
Description copied from interface: Navigatable
Open editor and select/navigate to the object there if possible. Just do nothing if navigation is not possible like in case of a package

Specified by:
navigate in interface Navigatable

canNavigate

public boolean canNavigate()
Specified by:
canNavigate in interface Navigatable
Returns:
false if navigation is not possible for any reason.

canNavigateToSource

public boolean canNavigateToSource()
Specified by:
canNavigateToSource in interface Navigatable
Returns:
false if navigation to source is not possible for any reason. Source means some kind of editor

getParentValue

protected final java.lang.Object getParentValue()

getToolTip

protected java.lang.String getToolTip()

canRepresent

public boolean canRepresent(java.lang.Object element)