public class PackageElementNode extends ProjectViewNode<PackageElement> implements ValidateableNode
PresentableNodeDescriptor.ColoredFragment
NodeDescriptor.NodeComparator<T extends NodeDescriptor<?>>
LOG
DEFAULT_WEIGHT, EMPTY_ARRAY, myClosedIcon, myColor, myName, myOpenIcon, myProject
EMPTY_ROOTS
EMPTY_NAVIGATION_ITEM_ARRAY
Constructor and Description |
---|
PackageElementNode(Project project,
PackageElement value,
ViewSettings viewSettings) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRepresent(java.lang.Object element) |
boolean |
contains(VirtualFile file)
Checks if this node or one of its children represents the specified virtual file.
|
java.util.Collection<AbstractTreeNode<?>> |
getChildren() |
java.lang.String |
getQualifiedNameSortKey() |
java.lang.String |
getTestPresentation() |
java.lang.String |
getTitle() |
int |
getTypeSortWeight(boolean sortByType) |
VirtualFile [] |
getVirtualFiles() |
int |
getWeight() |
boolean |
isAlwaysShowPlus() |
boolean |
isValid() |
protected void |
update(PresentationData presentation) |
boolean |
validate() |
boolean |
valueIsCut() |
canHaveChildrenMatching, createTreeNode, getDefaultRootsFor, getManualOrderKey, getRoots, getSettings, getSortKey, getTypeSortKey, getVirtualFile, hasProblemFileBeneath, isSortByFirstChild, isValidating, shouldApply, shouldDrillDownOnEmptyElement, shouldPostprocess, someChildContainsFile, someChildContainsFile, wrap
apply, canNavigate, canNavigateToSource, equals, getChildToHighlightAt, getElement, getEqualityObject, getFileStatus, getFileStatusColor, getLeafState, getName, getNullValueSetTrace, getParent, getParentDescriptor, getParentValue, getToolTip, getValue, hashCode, isAlwaysExpand, isAlwaysLeaf, navigate, postprocess, setParent, setValue, shouldUpdateData, toTestString
apply, apply, applyFrom, createPresentation, getHighlightColor, getPresentation, getTemplatePresentation, isAncestorOrSelf, isContentHighlighted, isHighlightableContentNode, isParentOf, update
expandOnDoubleClick, getChildrenSortingStamp, getClosedIcon, getColor, getIcon, getIndex, getOpenIcon, getProject, getUpdateCount, isWasDeclaredAlwaysLeaf, setChildrenSortingStamp, setIcon, setIndex, setUpdateCount, setWasDeclaredAlwaysLeaf, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getPresentation
public PackageElementNode(Project project, PackageElement value, ViewSettings viewSettings)
public boolean contains(VirtualFile file)
ProjectViewNode
contains
in class ProjectViewNode<PackageElement>
file
- the file to check for.public java.util.Collection<AbstractTreeNode<?>> getChildren()
getChildren
in class AbstractTreeNode<PackageElement>
public boolean validate()
validate
in class ProjectViewNode<PackageElement>
public boolean isValid()
isValid
in interface ValidateableNode
protected void update(PresentationData presentation)
update
in class PresentableNodeDescriptor<AbstractTreeNode<PackageElement>>
public java.lang.String getTestPresentation()
getTestPresentation
in class AbstractTreeNode<PackageElement>
public boolean valueIsCut()
valueIsCut
in class AbstractTreeNode<PackageElement>
public VirtualFile [] getVirtualFiles()
public boolean canRepresent(java.lang.Object element)
canRepresent
in class AbstractTreeNode<PackageElement>
public int getWeight()
getWeight
in class NodeDescriptor<AbstractTreeNode<PackageElement>>
public java.lang.String getTitle()
getTitle
in class ProjectViewNode<PackageElement>
public java.lang.String getQualifiedNameSortKey()
getQualifiedNameSortKey
in class ProjectViewNode<PackageElement>
public int getTypeSortWeight(boolean sortByType)
getTypeSortWeight
in class ProjectViewNode<PackageElement>
public boolean isAlwaysShowPlus()
isAlwaysShowPlus
in class AbstractTreeNode<PackageElement>