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, updateColor
breadthFirstEnumeration, 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, setUserObject
public 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 PackageDependenciesNode
public boolean isContentOrSourceRoot()
public java.lang.String toString()
toString
in class javax.swing.tree.DefaultMutableTreeNode
public java.lang.String getDirName()
public java.lang.String getFQName()
public PsiElement getPsiElement()
getPsiElement
in class PackageDependenciesNode
public PsiDirectory getTargetDirectory()
public int getWeight()
getWeight
in class PackageDependenciesNode
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public javax.swing.Icon getIcon()
getIcon
in class PackageDependenciesNode
public void setCompactedDirNode(DirectoryNode compactedDirNode)
public DirectoryNode getWrapper()
public DirectoryNode getCompactedDirNode()
public void removeUpReference()
public boolean isValid()
isValid
in class PackageDependenciesNode
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 PackageDependenciesNode
false
if navigation is not possible for any reason.public java.lang.String getComment()
getComment
in class PackageDependenciesNode
public boolean canSelectInLeftTree(java.util.Map<PsiFile,java.util.Set<PsiFile>> deps)
canSelectInLeftTree
in class PackageDependenciesNode
public VirtualFile getDirectory()