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

Type Parameters:
V - the type of the tree rows
R - 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 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 id
      creator - creates a new element
      Returns:
      this builder