Package org.eclipse.emfforms.spi.editor
Interface IToolbarAction
-
- All Known Implementing Classes:
GenerateEcoreEditorJavaCodeAction
,GenerateJavaCodeAction
,OpenPreviewHandler
public interface IToolbarAction
The Interface IToolbarAction allows the creation of ToolBar actions for the Generic Editor.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
canExecute(java.lang.Object object)
org.eclipse.jface.action.Action
getAction(java.lang.Object currentObject, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
Returns the action to add to the toolbar.
-
-
-
Method Detail
-
getAction
org.eclipse.jface.action.Action getAction(java.lang.Object currentObject, org.eclipse.jface.viewers.ISelectionProvider selectionProvider)
Returns the action to add to the toolbar.- Parameters:
currentObject
- the currently edited object of the editorselectionProvider
- the selection provider- Returns:
- the action
-
canExecute
boolean canExecute(java.lang.Object object)
- Parameters:
object
- the currently edited object of the editor- Returns:
- true, if the Action can be executed for the provided input
-
-