T
- the type of data of applicable nodespublic abstract class CommandTreeCellContribution<T> extends java.lang.Object implements TreeCellContribution<T>, EclipseTreeContribution<T>
EclipseTreeContribution
so as to be injected according to an eclipse
context.
This contribution registers an E4 command to the cell, which can be activated via double click or the enter key.
Constructor and Description |
---|
CommandTreeCellContribution(java.lang.String commandId) |
Modifier and Type | Method and Description |
---|---|
<U extends T> |
configureCell(TreeItemData<U> data,
javafx.scene.Node content)
Used to change the default cell configuration strategy.
|
void |
configureCommand(org.eclipse.e4.core.commands.ECommandService commandService) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appliesToTree, getContributionId, getContributionRanking
appliesTo, getDataType
public CommandTreeCellContribution(java.lang.String commandId)
commandId
- the ID of the command in the E4 model@PostConstruct public void configureCommand(org.eclipse.e4.core.commands.ECommandService commandService)
public <U extends T> javafx.scene.Node configureCell(TreeItemData<U> data, javafx.scene.Node content)
TreeCellContribution
Here is also a good place to mark a cell with a pseudo-class to flag for custom css styling.
configureCell
in interface TreeCellContribution<T>
U
- the specific type of the tree itemdata
- the data contents of the tree itemcontent
- the current cell content for the tree item