public class ClassTreeNode extends BasePsiMemberNode<PsiClass>
PresentableNodeDescriptor.ColoredFragment
NodeDescriptor.NodeComparator<T extends NodeDescriptor<?>>
DEFAULT_WEIGHT, EMPTY_ARRAY, myClosedIcon, myColor, myName, myOpenIcon, myProject
EMPTY_ROOTS
EMPTY_NAVIGATION_ITEM_ARRAY
Constructor and Description |
---|
ClassTreeNode(Project project,
PsiClass value,
ViewSettings viewSettings) |
ClassTreeNode(Project project,
PsiClass value,
ViewSettings viewSettings,
java.util.Collection<? extends AbstractTreeNode<?>> mandatoryChildren) |
Modifier and Type | Method and Description |
---|---|
boolean |
canRepresent(java.lang.Object element) |
boolean |
expandOnDoubleClick() |
java.util.Collection<AbstractTreeNode<?>> |
getChildrenImpl() |
static int |
getClassPosition(PsiClass aClass) |
PsiClass |
getPsiClass() |
java.lang.String |
getTitle() |
java.lang.Comparable |
getTypeSortKey()
When nodes are sorted by type all objects with same weigh will be sorted using
some common algorithm (e.g alpha comparator).
|
int |
getTypeSortWeight(boolean sortByType) |
int |
getWeight() |
boolean |
isAlwaysExpand() |
boolean |
isAlwaysLeaf() |
protected boolean |
isMarkReadOnly() |
boolean |
isTopLevel() |
boolean |
shouldDrillDownOnEmptyElement() |
void |
updateImpl(PresentationData data) |
calcTooltip, isDeprecated
extractPsiFromValue, getFileStatus, getVirtualFile
canNavigate, canNavigateToSource, computeFileStatus, contains, getChildren, getIconableFlags, getNavigationItem, isValid, navigate, navigate, patchIcon, update, validate
canHaveChildrenMatching, createTreeNode, getDefaultRootsFor, getManualOrderKey, getQualifiedNameSortKey, getRoots, getSettings, getSortKey, hasProblemFileBeneath, isSortByFirstChild, isValidating, shouldApply, shouldPostprocess, someChildContainsFile, someChildContainsFile, wrap
apply, equals, getChildToHighlightAt, getElement, getEqualityObject, getFileStatusColor, getLeafState, getName, getNullValueSetTrace, getParent, getParentDescriptor, getParentValue, getTestPresentation, getToolTip, getValue, hashCode, isAlwaysShowPlus, postprocess, setParent, setValue, shouldUpdateData, toTestString, valueIsCut
apply, apply, applyFrom, createPresentation, getHighlightColor, getPresentation, getTemplatePresentation, isAncestorOrSelf, isContentHighlighted, isHighlightableContentNode, isParentOf, update
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 ClassTreeNode(Project project, PsiClass value, ViewSettings viewSettings)
public ClassTreeNode(Project project, PsiClass value, ViewSettings viewSettings, java.util.Collection<? extends AbstractTreeNode<?>> mandatoryChildren)
public java.util.Collection<AbstractTreeNode<?>> getChildrenImpl()
getChildrenImpl
in class AbstractPsiBasedNode<PsiClass>
public boolean isAlwaysLeaf()
isAlwaysLeaf
in class AbstractTreeNode<PsiClass>
public void updateImpl(PresentationData data)
updateImpl
in class AbstractPsiBasedNode<PsiClass>
public boolean isTopLevel()
public boolean expandOnDoubleClick()
expandOnDoubleClick
in class NodeDescriptor<AbstractTreeNode<PsiClass>>
public PsiClass getPsiClass()
public boolean isAlwaysExpand()
isAlwaysExpand
in class AbstractTreeNode<PsiClass>
public int getWeight()
getWeight
in class NodeDescriptor<AbstractTreeNode<PsiClass>>
public java.lang.String getTitle()
getTitle
in class ProjectViewNode<PsiClass>
protected boolean isMarkReadOnly()
isMarkReadOnly
in class AbstractPsiBasedNode<PsiClass>
public int getTypeSortWeight(boolean sortByType)
getTypeSortWeight
in class ProjectViewNode<PsiClass>
public java.lang.Comparable getTypeSortKey()
ProjectViewNode
getTypeSortKey
in class ProjectViewNode<PsiClass>
public static int getClassPosition(PsiClass aClass)
public boolean shouldDrillDownOnEmptyElement()
shouldDrillDownOnEmptyElement
in class ProjectViewNode<PsiClass>
public boolean canRepresent(java.lang.Object element)
canRepresent
in class AbstractTreeNode<PsiClass>