public class DirectoryNode extends PackageDependenciesNode
myColor, myProject, NOT_CHANGED| Constructor and Description |
|---|
DirectoryNode(VirtualFile aDirectory,
Project project,
boolean compactPackages,
boolean showFQName,
VirtualFile baseDir,
VirtualFile[] contentRoots) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canNavigate()
Indicates whether this instance supports navigation of any kind.
|
boolean |
canSelectInLeftTree(java.util.Map<PsiFile,java.util.Set<PsiFile>> deps) |
boolean |
equals(java.lang.Object o) |
void |
fillFiles(java.util.Set<? super PsiFile> set,
boolean recursively) |
java.lang.String |
getComment() |
DirectoryNode |
getCompactedDirNode() |
VirtualFile |
getDirectory() |
java.lang.String |
getDirName() |
java.lang.String |
getFQName() |
javax.swing.Icon |
getIcon() |
PsiElement |
getPsiElement() |
PsiDirectory |
getTargetDirectory() |
int |
getWeight() |
DirectoryNode |
getWrapper() |
int |
hashCode() |
boolean |
isContentOrSourceRoot() |
boolean |
isValid() |
void |
removeUpReference() |
void |
setCompactedDirNode(DirectoryNode compactedDirNode) |
java.lang.String |
toString() |
add, addFile, canNavigateToSource, getColor, getContainingFiles, getPresentableFilesCount, getRegisteredFiles, getUserObject, hasMarked, hasUnmarked, isEquals, isSorted, navigate, 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 DirectoryNode(VirtualFile aDirectory, Project project, boolean compactPackages, boolean showFQName, VirtualFile baseDir, VirtualFile[] contentRoots)
public void fillFiles(java.util.Set<? super PsiFile> set, boolean recursively)
fillFiles in class PackageDependenciesNodepublic boolean isContentOrSourceRoot()
public java.lang.String toString()
toString in class javax.swing.tree.DefaultMutableTreeNodepublic java.lang.String getDirName()
public java.lang.String getFQName()
public PsiElement getPsiElement()
getPsiElement in class PackageDependenciesNodepublic PsiDirectory getTargetDirectory()
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 javax.swing.Icon getIcon()
getIcon in class PackageDependenciesNodepublic void setCompactedDirNode(DirectoryNode compactedDirNode)
public DirectoryNode getWrapper()
public DirectoryNode getCompactedDirNode()
public void removeUpReference()
public boolean isValid()
isValid 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 java.lang.String getComment()
getComment in class PackageDependenciesNodepublic boolean canSelectInLeftTree(java.util.Map<PsiFile,java.util.Set<PsiFile>> deps)
canSelectInLeftTree in class PackageDependenciesNodepublic VirtualFile getDirectory()