Interface EMFTableFileMenusBuilder.LoadFromFileMenu<T>

Enclosing class:
EMFTableFileMenusBuilder

public static interface EMFTableFileMenusBuilder.LoadFromFileMenu<T>
The optional settings of the Load from file menu item, and build(). The item is shown only if the list of elements is a containment list and the element class has no lists and no containment references.
  • Method Details

    • elementClass

      EMFTableFileMenusBuilder.LoadFromFileMenu<T> elementClass(org.eclipse.emf.ecore.EClass elementClass)
      Sets the element class to use instead of the type of elementsFeature.
      Parameters:
      elementClass - the class of the elements
      Returns:
      builder object
    • beforeCommandAction

      EMFTableFileMenusBuilder.LoadFromFileMenu<T> beforeCommandAction(Runnable beforeCommandAction)
      Sets an action that runs before the upload command. It is not part of the command, so undo does not reverse it.
      Parameters:
      beforeCommandAction - the action to run
      Returns:
      builder object
    • afterCommandAction

      EMFTableFileMenusBuilder.LoadFromFileMenu<T> afterCommandAction(Runnable afterCommandAction)
      Sets an action that runs after the upload command. It is not part of the command, so undo does not reverse it.
      Parameters:
      afterCommandAction - the action to run
      Returns:
      builder object
    • build

      EMFTable<T> build()
      Adds the menu item to the table menu. A new setup replaces the previous one.
      Returns:
      the table