Interface EmfTablePageBuilder.ToolBarBuilder<V extends org.eclipse.emf.ecore.EObject,R>
- Type Parameters:
V- the type of the table rowsR- the type returned by end()
- All Superinterfaces:
IToolBarBuilder<V,EmfTablePageBuilder.ToolBarBuilder<V, R>, R>
- Enclosing class:
EmfTablePageBuilder
public static interface EmfTablePageBuilder.ToolBarBuilder<V extends org.eclipse.emf.ecore.EObject,R>
extends IToolBarBuilder<V,EmfTablePageBuilder.ToolBarBuilder<V,R>,R>
Builder of the table toolbar. Items go in the order of the calls. A second call of the same
action replaces the earlier item in its place.
-
Method Summary
Modifier and TypeMethodDescriptionAdds the copy item.defaultCreateElementAction(String idPattern, Supplier<V> creator) Adds the create item.Methods inherited from interface com.amalgamasimulation.desktop.ui.editor.builders.interfaces.IToolBarBuilder
customAction, customCopyElementAction, customCreateElementAction, customMoveDownElementAction, customMoveUpElementAction, customRefreshTableAction, customRemoveElementAction, defaultCopyElementAction, defaultCreateElementAction, defaultMoveDownElementAction, defaultMoveUpElementAction, defaultRefreshTableAction, defaultRemoveElementAction, end, selectElementsFromTableAction, selectObjectsFromTableAction, separator, showTextAndIcon
-
Method Details
-
defaultCreateElementAction
EmfTablePageBuilder.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
-
defaultCopyElementAction
EmfTablePageBuilder.ToolBarBuilder<V,R> defaultCopyElementAction()Adds the copy item. The copy keeps the references and goes right after the selected row.- Returns:
- this builder
-