public static class ScratchProjectViewPane.MyStructureProvider extends java.lang.Object implements TreeStructureProvider, DumbAware
EP, EP_NAME| Constructor and Description |
|---|
MyStructureProvider() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getData(java.util.Collection<AbstractTreeNode<?>> selected,
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 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<?>> selected, java.lang.String dataId)
TreeStructureProvidergetData in interface TreeStructureProviderselected - 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