public class ModuleNode extends PackageDependenciesNode implements NavigatableWithText
myColor, myProject, NOT_CHANGED| Constructor and Description |
|---|
ModuleNode(Module module,
ModuleGrouper moduleGrouper) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canNavigate()
Indicates whether this instance supports navigation of any kind.
|
boolean |
canNavigateToSource()
Indicates whether this instance supports navigation to source (that means some kind of editor).
|
boolean |
equals(java.lang.Object o) |
void |
fillFiles(java.util.Set<? super PsiFile> set,
boolean recursively) |
javax.swing.Icon |
getIcon() |
Module |
getModule() |
java.lang.String |
getModuleName() |
java.lang.String |
getNavigateActionText(boolean focusEditor) |
int |
getWeight() |
int |
hashCode() |
boolean |
isValid() |
void |
navigate(boolean focus)
Open editor and select/navigate to the object there if possible.
|
java.lang.String |
toString() |
add, addFile, canSelectInLeftTree, getColor, getComment, getContainingFiles, getPresentableFilesCount, getPsiElement, getRegisteredFiles, getUserObject, hasMarked, hasUnmarked, isEquals, isSorted, setEquals, setSorted, sortChildren, updateColorbreadthFirstEnumeration, children, clone, depthFirstEnumeration, getAllowsChildren, getChildAfter, getChildAt, getChildBefore, getChildCount, getDepth, getFirstChild, getFirstLeaf, getIndex, getLastChild, getLastLeaf, getLeafCount, getLevel, getNextLeaf, getNextNode, getNextSibling, getParent, getPath, getPathToRoot, getPreviousLeaf, getPreviousNode, getPreviousSibling, getRoot, getSharedAncestor, getSiblingCount, getUserObjectPath, insert, isLeaf, isNodeAncestor, isNodeChild, isNodeDescendant, isNodeRelated, isNodeSibling, isRoot, pathFromAncestorEnumeration, postorderEnumeration, preorderEnumeration, remove, remove, removeAllChildren, removeFromParent, setAllowsChildren, setParent, setUserObjectpublic ModuleNode(Module module, ModuleGrouper moduleGrouper)
public void fillFiles(java.util.Set<? super PsiFile> set, boolean recursively)
fillFiles in class PackageDependenciesNodepublic boolean canNavigate()
NavigatableNavigatable.canNavigateToSource() returns true.
We assume that this method should return true in such case,
so implement this method respectively.canNavigate in interface NavigatablecanNavigate in class PackageDependenciesNodefalse if navigation is not possible for any reason.public boolean canNavigateToSource()
Navigatablefalse.
In such cases it is not recommended to do batch navigation for all navigatables
available via CommonDataKeys.NAVIGATABLE_ARRAY,
because it may lead to opening several modal dialogs.
Use OpenSourceUtil.navigate(com.intellij.pom.Navigatable...) to process such arrays correctly.canNavigateToSource in interface NavigatablecanNavigateToSource in class PackageDependenciesNodefalse if navigation to source is not possible for any reason.public void navigate(boolean focus)
Navigatablenavigate in interface Navigatablenavigate in class PackageDependenciesNodefocus - true if focus requesting is necessarypublic javax.swing.Icon getIcon()
getIcon in class PackageDependenciesNodepublic java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNodepublic java.lang.String getModuleName()
public Module getModule()
public int getWeight()
getWeight in class PackageDependenciesNodepublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isValid()
isValid in class PackageDependenciesNodepublic java.lang.String getNavigateActionText(boolean focusEditor)
getNavigateActionText in interface NavigatableWithText