public final class CompoundTreeStructureProvider extends java.lang.Object implements TreeStructureProvider
EP, EP_NAME| Constructor and Description |
|---|
CompoundTreeStructureProvider(Project project) |
| Modifier and Type | Method and Description |
|---|---|
static TreeStructureProvider |
get(Project project) |
java.lang.Object |
getData(java.util.Collection<AbstractTreeNode<?>> selection,
java.lang.String dataId)
Returns a user data object of the specified type for the specified selection in the
project view.
|
java.util.Collection<AbstractTreeNode<?>> |
modify(AbstractTreeNode<?> parent,
java.util.Collection<AbstractTreeNode<?>> children,
ViewSettings settings)
Allows a plugin to modify the list of children displayed for the specified node in the
project view.
|
public CompoundTreeStructureProvider(Project project)
public static TreeStructureProvider get(Project project)
public java.util.Collection<AbstractTreeNode<?>> modify(AbstractTreeNode<?> parent, java.util.Collection<AbstractTreeNode<?>> children, ViewSettings settings)
TreeStructureProvidermodify in interface TreeStructureProviderparent - the parent node.children - the list of child nodes according to the default project structure.
Elements of the collection are of type ProjectViewNode.settings - the current project view settings.children if no modifications
are required.public java.lang.Object getData(java.util.Collection<AbstractTreeNode<?>> selection, java.lang.String dataId)
TreeStructureProvidergetData in interface TreeStructureProviderselection - the list of nodes currently selected in the project view.dataId - the identifier of the requested data object (for example, as defined in
PlatformDataKeys)DataProvider