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 Summary
Modifier and TypeMethodDescriptionafterCommandAction(Runnable afterCommandAction) Sets an action that runs after the upload command.beforeCommandAction(Runnable beforeCommandAction) Sets an action that runs before the upload command.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.build()Adds the menu item to the table menu.elementClass(org.eclipse.emf.ecore.EClass elementClass) Sets the element class to use instead of the type of elementsFeature.
-
Method Details
-
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
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
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
Adds the menu item to the table menu. A new setup replaces the previous one.- Returns:
- the table
-