Interface EMFTableFileMenusBuilder.EditInExcelMenu<T>

Enclosing class:
EMFTableFileMenusBuilder

public static interface EMFTableFileMenusBuilder.EditInExcelMenu<T>
The optional settings of the Edit in Excel menu item, and build().
  • Method Details

    • elementClass

      EMFTableFileMenusBuilder.EditInExcelMenu<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
    • beforeRemove

      EMFTableFileMenusBuilder.EditInExcelMenu<T> beforeRemove(Function<List<org.eclipse.emf.ecore.EObject>,List<org.eclipse.emf.common.command.Command>> beforeRemove)
      Gets the elements that the upload will remove and returns commands that run first in the same upload command. It must not return null.
      Parameters:
      beforeRemove - returns the commands for the elements to remove
      Returns:
      builder object
    • beforeCommandAction

      EMFTableFileMenusBuilder.EditInExcelMenu<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.EditInExcelMenu<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