com.intellij.ide.util.treeView
Class AbstractTreeNode<Value>
java.lang.Object
com.intellij.ide.util.treeView.NodeDescriptor
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
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
myLocationString
protected java.lang.String myLocationString
AbstractTreeNode
protected AbstractTreeNode(Project project,
Value value)
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)