public abstract class AbstractModuleNode extends ProjectViewNode<Module> implements NavigatableWithText
PresentableNodeDescriptor.ColoredFragment
NodeDescriptor.NodeComparator<T extends NodeDescriptor<?>>
LOG
DEFAULT_WEIGHT, EMPTY_ARRAY, myClosedIcon, myColor, myName, myOpenIcon, myProject
EMPTY_ROOTS
EMPTY_NAVIGATION_ITEM_ARRAY
Modifier | Constructor and Description |
---|---|
protected |
AbstractModuleNode(Project project,
Module module,
ViewSettings viewSettings) |
Modifier and Type | Method and Description |
---|---|
boolean |
canNavigate()
Indicates whether this instance supports navigation of any kind.
|
boolean |
contains(VirtualFile file)
Checks if this node or one of its children represents the specified virtual file.
|
java.lang.String |
getNavigateActionText(boolean focusEditor) |
java.util.Collection<VirtualFile> |
getRoots() |
java.lang.String |
getTestPresentation() |
void |
navigate(boolean requestFocus)
Open editor and select/navigate to the object there if possible.
|
protected boolean |
showModuleNameInBold() |
void |
update(PresentationData presentation) |
canHaveChildrenMatching, createTreeNode, getDefaultRootsFor, getManualOrderKey, getQualifiedNameSortKey, getSettings, getSortKey, getTitle, getTypeSortKey, getTypeSortWeight, getVirtualFile, hasProblemFileBeneath, isSortByFirstChild, isValidating, shouldApply, shouldDrillDownOnEmptyElement, shouldPostprocess, someChildContainsFile, someChildContainsFile, validate, wrap
apply, canNavigateToSource, canRepresent, equals, getChildren, getChildToHighlightAt, getElement, getEqualityObject, getFileStatus, getFileStatusColor, getLeafState, getName, getNullValueSetTrace, getParent, getParentDescriptor, getParentValue, getToolTip, getValue, hashCode, isAlwaysExpand, isAlwaysLeaf, isAlwaysShowPlus, postprocess, setParent, setValue, shouldUpdateData, toTestString, valueIsCut
apply, apply, applyFrom, createPresentation, getHighlightColor, getPresentation, getTemplatePresentation, isAncestorOrSelf, isContentHighlighted, isHighlightableContentNode, isParentOf, update
expandOnDoubleClick, getChildrenSortingStamp, getClosedIcon, getColor, getIcon, getIndex, getOpenIcon, getProject, getUpdateCount, getWeight, isWasDeclaredAlwaysLeaf, setChildrenSortingStamp, setIcon, setIndex, setUpdateCount, setWasDeclaredAlwaysLeaf, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
canNavigateToSource
getPresentation
protected AbstractModuleNode(Project project, Module module, ViewSettings viewSettings)
public void update(PresentationData presentation)
update
in class PresentableNodeDescriptor<AbstractTreeNode<Module>>
protected boolean showModuleNameInBold()
public java.util.Collection<VirtualFile> getRoots()
getRoots
in interface RootsProvider
getRoots
in class ProjectViewNode<Module>
public boolean contains(VirtualFile file)
ProjectViewNode
contains
in class ProjectViewNode<Module>
file
- the file to check for.public void navigate(boolean requestFocus)
Navigatable
navigate
in interface Navigatable
navigate
in class AbstractTreeNode<Module>
requestFocus
- true
if focus requesting is necessarypublic java.lang.String getNavigateActionText(boolean focusEditor)
getNavigateActionText
in interface NavigatableWithText
public boolean canNavigate()
Navigatable
Navigatable.canNavigateToSource()
returns true
.
We assume that this method should return true
in such case,
so implement this method respectively.canNavigate
in interface Navigatable
canNavigate
in class AbstractTreeNode<Module>
false
if navigation is not possible for any reason.public java.lang.String getTestPresentation()
getTestPresentation
in class AbstractTreeNode<Module>