public class PackagingElementNode<E extends PackagingElement<?>> extends ArtifactsTreeNode
PresentableNodeDescriptor.ColoredFragment
NodeDescriptor.NodeComparator<T extends NodeDescriptor<?>>
ComparableObject.Impl
myContext
NO_CHILDREN
DEFAULT_WEIGHT, EMPTY_ARRAY, myClosedIcon, myColor, myName, myOpenIcon, myProject
NONE
Constructor and Description |
---|
PackagingElementNode(E packagingElement,
ArtifactEditorContext context,
CompositePackagingElementNode parentNode,
CompositePackagingElement<?> parentElement,
java.util.Collection<PackagingNodeSource> nodeSources) |
Modifier and Type | Method and Description |
---|---|
protected SimpleNode[] |
buildChildren() |
ArtifactEditorContext |
getContext() |
E |
getElementIfSingle() |
java.lang.Object [] |
getEqualityObjects() |
E |
getFirstElement() |
java.util.List<PackagingElementNode<?>> |
getNodesByPath(java.util.List<? extends PackagingElement<?>> pathToPlace) |
java.util.Collection<PackagingNodeSource> |
getNodeSource(PackagingElement<?> element) |
java.util.Collection<PackagingNodeSource> |
getNodeSources() |
java.util.List<E> |
getPackagingElements() |
CompositePackagingElement<?> |
getParentElement(PackagingElement<?> element) |
CompositePackagingElementNode |
getParentNode() |
protected void |
update(PresentationData presentation) |
getElementPresentation, getName, getWeight
cleanUpCache, getCached, getChildren, onChildrenBuilt
accept, addColoredFragment, addColoredFragment, addColoredFragment, addErrorText, addPlainText, clearColoredText, doUpdate, equals, getChildAt, getChildCount, getChildToHighlightAt, getColoredText, getElement, getErrorAttributes, getIndex, getLeafState, getParent, getPlainAttributes, handleDoubleClickOrEnter, handleSelection, hashCode, isAlwaysLeaf, isAlwaysShowPlus, isAutoExpandNode, setNodeText, setPlainText, setUniformIcon, shouldHaveSeparator, toString, updateElement, updateFileStatus
apply, apply, applyFrom, createPresentation, getHighlightColor, getPresentation, getTemplatePresentation, isAncestorOrSelf, isContentHighlighted, isHighlightableContentNode, isParentOf, postprocess, shouldApply, shouldPostprocess, shouldUpdateData, update
expandOnDoubleClick, getChildrenSortingStamp, getClosedIcon, getColor, getIcon, getIndex, getOpenIcon, getParentDescriptor, getProject, getUpdateCount, isWasDeclaredAlwaysLeaf, setChildrenSortingStamp, setIcon, setIndex, setUpdateCount, setWasDeclaredAlwaysLeaf
public PackagingElementNode(E packagingElement, ArtifactEditorContext context, CompositePackagingElementNode parentNode, CompositePackagingElement<?> parentElement, java.util.Collection<PackagingNodeSource> nodeSources)
public CompositePackagingElement<?> getParentElement(PackagingElement<?> element)
public CompositePackagingElementNode getParentNode()
public java.util.List<E> getPackagingElements()
public E getElementIfSingle()
public java.lang.Object [] getEqualityObjects()
getEqualityObjects
in interface ComparableObject
getEqualityObjects
in class SimpleNode
protected SimpleNode[] buildChildren()
buildChildren
in class CachingSimpleNode
public E getFirstElement()
protected void update(PresentationData presentation)
update
in class ArtifactsTreeNode
public java.util.Collection<PackagingNodeSource> getNodeSources()
public java.util.Collection<PackagingNodeSource> getNodeSource(PackagingElement<?> element)
public ArtifactEditorContext getContext()
public java.util.List<PackagingElementNode<?>> getNodesByPath(java.util.List<? extends PackagingElement<?>> pathToPlace)