T
- the type of data of applicable nodespublic abstract class MenuTreeCellContribution<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 popup menu to the cell, which can be activated via right click or the context menu key.
Constructor and Description |
---|
MenuTreeCellContribution(java.lang.String menuId) |
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 |
configureMenu() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
appliesToTree, getContributionId, getContributionRanking
appliesTo, getDataType
public MenuTreeCellContribution(java.lang.String menuId)
menuId
- the ID of the popup menu in the E4 model@PostConstruct public void configureMenu()
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