public class SmartElementDescriptor extends NodeDescriptor
NodeDescriptor.NodeComparator<T extends NodeDescriptor<?>>
DEFAULT_WEIGHT, EMPTY_ARRAY, myClosedIcon, myColor, myName, myOpenIcon, myProject
Constructor and Description |
---|
SmartElementDescriptor(Project project,
NodeDescriptor parentDescriptor,
PsiElement element) |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getElement() |
protected javax.swing.Icon |
getIcon(PsiElement element) |
PsiElement |
getPsiElement() |
protected boolean |
isMarkModified() |
protected boolean |
isMarkReadOnly() |
boolean |
update()
Make sure the descriptor is up to date with its content
|
applyFrom, expandOnDoubleClick, getChildrenSortingStamp, getClosedIcon, getColor, getIcon, getIndex, getOpenIcon, getParentDescriptor, getProject, getUpdateCount, getWeight, isWasDeclaredAlwaysLeaf, setChildrenSortingStamp, setIcon, setIndex, setUpdateCount, setWasDeclaredAlwaysLeaf, toString
public SmartElementDescriptor(Project project, NodeDescriptor parentDescriptor, PsiElement element)
public final PsiElement getPsiElement()
public java.lang.Object getElement()
getElement
in class NodeDescriptor
protected boolean isMarkReadOnly()
protected boolean isMarkModified()
public boolean update()
NodeDescriptor
update
in class NodeDescriptor
protected javax.swing.Icon getIcon(PsiElement element)