public abstract class ModuleGroupNode extends ProjectViewNode<ModuleGroup> implements DropTargetNode
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 |
---|
ModuleGroupNode(Project project,
ModuleGroup value,
ViewSettings viewSettings) |
Modifier and Type | Method and Description |
---|---|
boolean |
canDrop(javax.swing.tree.TreeNode [] sourceNodes) |
boolean |
contains(VirtualFile file)
Checks if this node or one of its children represents the specified virtual file.
|
protected abstract ModuleGroupNode |
createModuleGroupNode(ModuleGroup moduleGroup) |
protected abstract AbstractTreeNode |
createModuleNode(Module module) |
void |
drop(javax.swing.tree.TreeNode [] sourceNodes,
DataContext dataContext) |
void |
dropExternalFiles(PsiFileSystemItem[] sourceFileArray,
DataContext dataContext) |
java.util.Collection<AbstractTreeNode<?>> |
getChildren() |
protected abstract java.util.List<Module> |
getModulesByFile(VirtualFile file) |
java.util.Collection<VirtualFile> |
getRoots() |
java.lang.String |
getTestPresentation() |
java.lang.String |
getToolTip() |
int |
getTypeSortWeight(boolean sortByType) |
int |
getWeight() |
void |
update(PresentationData presentation) |
boolean |
validate() |
canHaveChildrenMatching, createTreeNode, getDefaultRootsFor, getManualOrderKey, getQualifiedNameSortKey, getSettings, getSortKey, getTitle, getTypeSortKey, getVirtualFile, hasProblemFileBeneath, isSortByFirstChild, isValidating, shouldApply, shouldDrillDownOnEmptyElement, shouldPostprocess, someChildContainsFile, someChildContainsFile, wrap
apply, canNavigate, canNavigateToSource, canRepresent, equals, getChildToHighlightAt, getElement, getEqualityObject, getFileStatus, getFileStatusColor, getLeafState, getName, getNullValueSetTrace, getParent, getParentDescriptor, getParentValue, getValue, hashCode, isAlwaysExpand, isAlwaysLeaf, isAlwaysShowPlus, navigate, postprocess, setParent, setValue, shouldUpdateData, toTestString, valueIsCut
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
canDrop, drop
getPresentation
public ModuleGroupNode(Project project, ModuleGroup value, ViewSettings viewSettings)
protected abstract AbstractTreeNode createModuleNode(Module module) throws java.lang.InstantiationException, java.lang.IllegalAccessException, java.lang.reflect.InvocationTargetException, java.lang.NoSuchMethodException
java.lang.InstantiationException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException
protected abstract ModuleGroupNode createModuleGroupNode(ModuleGroup moduleGroup)
public java.util.Collection<AbstractTreeNode<?>> getChildren()
getChildren
in class AbstractTreeNode<ModuleGroup>
public java.util.Collection<VirtualFile> getRoots()
getRoots
in interface RootsProvider
getRoots
in class ProjectViewNode<ModuleGroup>
public boolean contains(VirtualFile file)
ProjectViewNode
contains
in class ProjectViewNode<ModuleGroup>
file
- the file to check for.public boolean validate()
validate
in class ProjectViewNode<ModuleGroup>
protected abstract java.util.List<Module> getModulesByFile(VirtualFile file)
public void update(PresentationData presentation)
update
in class PresentableNodeDescriptor<AbstractTreeNode<ModuleGroup>>
public java.lang.String getTestPresentation()
getTestPresentation
in class AbstractTreeNode<ModuleGroup>
public java.lang.String getToolTip()
getToolTip
in class AbstractTreeNode<ModuleGroup>
public int getWeight()
getWeight
in class NodeDescriptor<AbstractTreeNode<ModuleGroup>>
public int getTypeSortWeight(boolean sortByType)
getTypeSortWeight
in class ProjectViewNode<ModuleGroup>
public boolean canDrop(javax.swing.tree.TreeNode [] sourceNodes)
canDrop
in interface DropTargetNode
public void drop(javax.swing.tree.TreeNode [] sourceNodes, DataContext dataContext)
drop
in interface DropTargetNode
public void dropExternalFiles(PsiFileSystemItem[] sourceFileArray, DataContext dataContext)
dropExternalFiles
in interface DropTargetNode