public interface TreeStructureProvider
Modifier and Type | Field and Description |
---|---|
static ProjectExtensionPointName<TreeStructureProvider> |
EP |
static ExtensionPointName<TreeStructureProvider> |
EP_NAME
Deprecated.
Use
EP |
Modifier and Type | Method and Description |
---|---|
default 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.
|
static final ProjectExtensionPointName<TreeStructureProvider> EP
@Deprecated static final ExtensionPointName<TreeStructureProvider> EP_NAME
EP
java.util.Collection<AbstractTreeNode<?>> modify(AbstractTreeNode<?> parent, java.util.Collection<AbstractTreeNode<?>> children, ViewSettings settings)
parent
- 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.default java.lang.Object getData(java.util.Collection<AbstractTreeNode<?>> selected, java.lang.String dataId)
selected
- 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