Interface EmfTreePageBuilder.FinalBuilder<V extends org.eclipse.emf.ecore.EObject>

Type Parameters:
V - the type of the tree rows
All Superinterfaces:
ISendMessagesOnDoubleClickBuilder<EmfTreePageBuilder.FinalBuilder<V>>
Enclosing class:
EmfTreePageBuilder

public static interface EmfTreePageBuilder.FinalBuilder<V extends org.eclipse.emf.ecore.EObject> extends ISendMessagesOnDoubleClickBuilder<EmfTreePageBuilder.FinalBuilder<V>>
The last step: optional settings in any order, then register.
  • Method Details

    • observableFeatures

      EmfTreePageBuilder.FinalBuilder<V> observableFeatures(org.eclipse.emf.ecore.EStructuralFeature... observableFeatures)
      Sets the row features that redraw the row when they change. Only visible rows are updated. The list replaces the features taken from the column editors, so a column without an editor must be listed here. A new call replaces the previous list.
      Parameters:
      observableFeatures - features of the row object
      Returns:
      this builder
    • observablePath

      EmfTreePageBuilder.FinalBuilder<V> observablePath(org.eclipse.emf.ecore.EStructuralFeature... path)
      Adds a path of references from the row to another object. For example, observablePath(PARENT, NAME) redraws the row when the name of its parent changes. Each call adds one more path.
      Parameters:
      path - features from the row to the observed feature
      Returns:
      this builder
    • style

      Sets the SWT style of the tree. The default is SWT.MULTI.
      Parameters:
      style - the SWT style
      Returns:
      this builder
    • checkBox

      Adds check boxes to the rows. A handler is added in columns with addCheckedItemsChangedHandler of the tree.
      Returns:
      this builder
    • rowHeader

      Adds a column with row numbers.
      Returns:
      this builder
    • alsoShownFor

      Shows this page for one more tree element. It can be called several times.
      Parameters:
      type - another tree element
      Returns:
      this builder
    • toolBar

      Starts the setup of the toolbar above the tree. end() returns to this builder.
      Returns:
      the toolbar builder
    • register

      <T extends AbstractTreeElementType> EmfTreePage<T,V> register(AbstractPagesPart<T,? super EmfTreePage<T,V>> part)
      Creates the page and registers it in the part. Call it once: a second call throws IllegalStateException.
      Type Parameters:
      T - the type of the tree elements of the part
      Parameters:
      part - the part that shows the page
      Returns:
      the created page