public class EclipseModularTreeController
extends java.lang.Object
modular tree view
for use within
an Eclipse RCP environment.
This class allows tree contributions
to be
contributed via contributors
so that the
contributions are instantiated according to an Eclipse injection context.
Constructor and Description |
---|
EclipseModularTreeController()
Instantiate a controller with the default id - the simple name of the class
- and no contribution filter.
|
EclipseModularTreeController(java.lang.String id) |
EclipseModularTreeController(java.lang.String id,
java.util.function.Predicate<java.lang.String> filter) |
Modifier and Type | Method and Description |
---|---|
protected void |
contribute(EclipseTreeContribution<?> contribution) |
java.lang.String |
getId() |
TreeItemImpl<?> |
getSelection() |
TreeItemData<?> |
getSelectionData() |
javafx.beans.property.StringProperty |
getTableIdProperty() |
ModularTreeView |
getTreeView() |
void |
setId(java.lang.String id) |
public EclipseModularTreeController()
public EclipseModularTreeController(java.lang.String id)
id
- the ID
of the controller to createpublic EclipseModularTreeController(java.lang.String id, java.util.function.Predicate<java.lang.String> filter)
id
- the ID
of the controller to createfilter
- a filter over the IDs of which contributions
to accept contributions frompublic javafx.beans.property.StringProperty getTableIdProperty()
contributions
to filter which
controllers they wish to contribute to.public java.lang.String getId()
public void setId(java.lang.String id)
id
- the new ID for the controllerprotected void contribute(EclipseTreeContribution<?> contribution)
public ModularTreeView getTreeView()
public TreeItemImpl<?> getSelection()
public TreeItemData<?> getSelectionData()