Interface EmfTreePageBuilder.ToolBarBuilder<V extends org.eclipse.emf.ecore.EObject,R>
- Type Parameters:
V- the type of the tree rowsR- the type returned by end()
- All Superinterfaces:
ITreeToolBarBuilder<V,EmfTreePageBuilder.ToolBarBuilder<V, R>, R>
- Enclosing class:
EmfTreePageBuilder
public static interface EmfTreePageBuilder.ToolBarBuilder<V extends org.eclipse.emf.ecore.EObject,R>
extends ITreeToolBarBuilder<V,EmfTreePageBuilder.ToolBarBuilder<V,R>,R>
Builder of the tree toolbar.
-
Method Summary
Modifier and TypeMethodDescriptiondefaultCreateElementAction(String idPattern, Supplier<V> creator) Adds the create item.Methods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.ITreeToolBarBuilder
collapseAllAction, customAction, customCreateElementAction, customMoveDownElementAction, customMoveUpElementAction, customRefreshTreeAction, customRemoveElementAction, defaultCreateElementAction, defaultMoveDownElementAction, defaultMoveUpElementAction, defaultRefreshTreeAction, defaultRemoveElementAction, end, expandAllAction, separator, showTextAndIcon
-
Method Details
-
defaultCreateElementAction
EmfTreePageBuilder.ToolBarBuilder<V,R> defaultCreateElementAction(String idPattern, Supplier<V> creator) Adds the create item. If the element class has a string id attribute, the new element gets a unique id made from the pattern, for example WC-1.- Parameters:
idPattern- the pattern of the idcreator- creates a new element- Returns:
- this builder
-