public abstract class ExternalSystemNode<T> extends SimpleNode implements java.lang.Comparable<ExternalSystemNode<T>>
PresentableNodeDescriptor.ColoredFragment
NodeDescriptor.NodeComparator<T extends NodeDescriptor<?>>
ComparableObject.Impl
Modifier and Type | Field and Description |
---|---|
static int |
BUILTIN_DEPENDENCIES_DATA_NODE_ORDER |
static int |
BUILTIN_MODULE_DATA_NODE_ORDER |
static int |
BUILTIN_RUN_CONFIGURATIONS_DATA_NODE_ORDER |
static int |
BUILTIN_TASKS_DATA_NODE_ORDER |
protected DataNode<T> |
myDataNode |
protected static ExternalSystemNode<?>[] |
NO_CHILDREN |
static java.util.Comparator<? super ExternalSystemNode<?>> |
ORDER_AWARE_COMPARATOR |
DEFAULT_WEIGHT, EMPTY_ARRAY, myClosedIcon, myColor, myName, myOpenIcon, myProject
NONE
Constructor and Description |
---|
ExternalSystemNode(ExternalProjectsView externalProjectsView,
ExternalSystemNode<?> parent) |
ExternalSystemNode(ExternalProjectsView externalProjectsView,
ExternalSystemNode<?> parent,
DataNode<T> dataNode) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(ExternalSystemNode<?> externalSystemNode) |
boolean |
addAll(java.util.Collection<? extends ExternalSystemNode<?>> externalSystemNodes) |
protected void |
childrenChanged() |
void |
cleanUpCache() |
int |
compareTo(ExternalSystemNode node) |
protected java.util.List<? extends ExternalSystemNode<?>> |
doBuildChildren() |
protected void |
doUpdate() |
<DataType extends ExternalSystemNode<?>> |
findParent(java.lang.Class<DataType> parentClass) |
<DataType> DataType |
findParentData(java.lang.Class<DataType> parentDataClass) |
protected java.lang.String |
getActionId() |
protected ExternalSystemNode<?> [] |
getCached() |
ExternalSystemNode<?> [] |
getChildren() |
ExternalProjectsStructure.ErrorLevel |
getChildrenErrorLevel() |
T |
getData() |
com.intellij.openapi.externalSystem.view.ExternalProjectsStructure.DisplayKind |
getDisplayKind() |
protected ExternalProjectsView |
getExternalProjectsView() |
protected java.lang.String |
getMenuId() |
java.lang.String |
getName() |
Navigatable |
getNavigatable() |
NodeDescriptor |
getParentDescriptor() |
protected ExternalSystemShortcutsManager |
getShortcutsManager() |
protected ExternalProjectsStructure |
getStructure() |
protected ExternalSystemTaskActivator |
getTaskActivator() |
ExternalProjectsStructure.ErrorLevel |
getTotalErrorLevel() |
protected ExternalSystemUiAware |
getUiAware() |
VirtualFile |
getVirtualFile() |
void |
handleDoubleClickOrEnter(SimpleTree tree,
java.awt.event.InputEvent inputEvent) |
boolean |
hasChildren() |
boolean |
isAutoExpandNode() |
boolean |
isIgnored() |
boolean |
isVisible() |
void |
mergeWith(ExternalSystemNode<T> node) |
protected java.lang.String |
message(java.lang.String key,
java.lang.Object... params) |
protected void |
onChildrenBuilt() |
void |
remove(ExternalSystemNode<?> externalSystemNode) |
boolean |
removeAll(java.util.Collection<? extends ExternalSystemNode<?>> externalSystemNodes) |
protected void |
setDataNode(DataNode<T> dataNode) |
void |
setErrorLevel(ExternalProjectsStructure.ErrorLevel level,
java.lang.String... errors) |
void |
setIgnored(boolean ignored) |
protected void |
setNameAndTooltip(java.lang.String name,
java.lang.String tooltip) |
protected void |
setNameAndTooltip(java.lang.String name,
java.lang.String tooltip,
SimpleTextAttributes attributes) |
protected void |
setNameAndTooltip(java.lang.String name,
java.lang.String tooltip,
java.lang.String hint) |
void |
setParent(ExternalSystemNode<?> parent) |
protected void |
sort(java.util.List<? extends ExternalSystemNode<?>> list) |
accept, addColoredFragment, addColoredFragment, addColoredFragment, addErrorText, addPlainText, clearColoredText, equals, getChildAt, getChildCount, getChildToHighlightAt, getColoredText, getElement, getEqualityObjects, getErrorAttributes, getIndex, getLeafState, getParent, getPlainAttributes, getWeight, handleSelection, hashCode, isAlwaysLeaf, isAlwaysShowPlus, setNodeText, setPlainText, setUniformIcon, shouldHaveSeparator, toString, update, 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, getProject, getUpdateCount, isWasDeclaredAlwaysLeaf, setChildrenSortingStamp, setIcon, setIndex, setUpdateCount, setWasDeclaredAlwaysLeaf
public static final int BUILTIN_TASKS_DATA_NODE_ORDER
public static final int BUILTIN_DEPENDENCIES_DATA_NODE_ORDER
public static final int BUILTIN_RUN_CONFIGURATIONS_DATA_NODE_ORDER
public static final int BUILTIN_MODULE_DATA_NODE_ORDER
public static final java.util.Comparator<? super ExternalSystemNode<?>> ORDER_AWARE_COMPARATOR
protected static final ExternalSystemNode<?>[] NO_CHILDREN
public ExternalSystemNode(ExternalProjectsView externalProjectsView, ExternalSystemNode<?> parent)
public ExternalSystemNode(ExternalProjectsView externalProjectsView, ExternalSystemNode<?> parent, DataNode<T> dataNode)
public boolean isAutoExpandNode()
isAutoExpandNode
in class SimpleNode
public void setParent(ExternalSystemNode<?> parent)
public T getData()
public NodeDescriptor getParentDescriptor()
getParentDescriptor
in class NodeDescriptor
public java.lang.String getName()
getName
in class PresentableNodeDescriptor
protected ExternalProjectsView getExternalProjectsView()
protected ExternalSystemUiAware getUiAware()
protected ExternalProjectsStructure getStructure()
protected ExternalSystemShortcutsManager getShortcutsManager()
protected ExternalSystemTaskActivator getTaskActivator()
public <DataType extends ExternalSystemNode<?>> DataType findParent(java.lang.Class<DataType> parentClass)
public <DataType> DataType findParentData(java.lang.Class<DataType> parentDataClass)
public boolean isVisible()
public boolean isIgnored()
public void setIgnored(boolean ignored)
public com.intellij.openapi.externalSystem.view.ExternalProjectsStructure.DisplayKind getDisplayKind()
public final ExternalSystemNode<?> [] getChildren()
getChildren
in class SimpleNode
protected void onChildrenBuilt()
public void cleanUpCache()
protected ExternalSystemNode<?> [] getCached()
protected void sort(java.util.List<? extends ExternalSystemNode<?>> list)
public boolean addAll(java.util.Collection<? extends ExternalSystemNode<?>> externalSystemNodes)
public boolean add(ExternalSystemNode<?> externalSystemNode)
public boolean removeAll(java.util.Collection<? extends ExternalSystemNode<?>> externalSystemNodes)
public void remove(ExternalSystemNode<?> externalSystemNode)
protected void childrenChanged()
public boolean hasChildren()
protected java.util.List<? extends ExternalSystemNode<?>> doBuildChildren()
public ExternalProjectsStructure.ErrorLevel getTotalErrorLevel()
public ExternalProjectsStructure.ErrorLevel getChildrenErrorLevel()
public void setErrorLevel(ExternalProjectsStructure.ErrorLevel level, java.lang.String... errors)
protected void doUpdate()
doUpdate
in class SimpleNode
protected void setNameAndTooltip(java.lang.String name, java.lang.String tooltip)
protected void setNameAndTooltip(java.lang.String name, java.lang.String tooltip, java.lang.String hint)
protected void setNameAndTooltip(java.lang.String name, java.lang.String tooltip, SimpleTextAttributes attributes)
protected java.lang.String getActionId()
protected java.lang.String getMenuId()
protected java.lang.String message(java.lang.String key, java.lang.Object... params)
public VirtualFile getVirtualFile()
public Navigatable getNavigatable()
public void handleDoubleClickOrEnter(SimpleTree tree, java.awt.event.InputEvent inputEvent)
handleDoubleClickOrEnter
in class SimpleNode
public int compareTo(ExternalSystemNode node)
compareTo
in interface java.lang.Comparable<ExternalSystemNode<T>>
public void mergeWith(ExternalSystemNode<T> node)