Interface EmfTablePageBuilder.ToolBarBuilder<V extends org.eclipse.emf.ecore.EObject,R>

Type Parameters:
V - the type of the table rows
R - 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 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 id
      creator - 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