Class CreateNewInstanceAction
- java.lang.Object
-
- org.eclipse.core.commands.common.EventManager
-
- org.eclipse.core.commands.AbstractHandler
-
- org.eclipse.emfforms.spi.swt.treemasterdetail.actions.MasterDetailAction
-
- org.eclipse.emfforms.internal.editor.ecore.actions.CreateNewInstanceAction
-
- All Implemented Interfaces:
org.eclipse.core.commands.IHandler
,org.eclipse.core.commands.IHandler2
public class CreateNewInstanceAction extends MasterDetailAction
- Author:
- Lucas Koehler
-
-
Constructor Summary
Constructors Constructor Description CreateNewInstanceAction()
Default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
execute(java.util.List<java.lang.Object> objects)
java.lang.Object
execute(org.eclipse.core.commands.ExecutionEvent event)
boolean
shouldShow(java.util.List<java.lang.Object> objects)
-
Methods inherited from class org.eclipse.emfforms.spi.swt.treemasterdetail.actions.MasterDetailAction
getImagePath, getLabel, getTreeViewer, setImagePath, setLabel, setTreeViewer
-
Methods inherited from class org.eclipse.core.commands.AbstractHandler
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
-
-
-
-
Method Detail
-
execute
public java.lang.Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
- Throws:
org.eclipse.core.commands.ExecutionException
-
shouldShow
public boolean shouldShow(java.util.List<java.lang.Object> objects)
- Specified by:
shouldShow
in classMasterDetailAction
- Parameters:
objects
- the list of objects on which to test if the action can be executed- Returns:
- true if the action can be executed on the parameter
-
execute
public void execute(java.util.List<java.lang.Object> objects)
- Specified by:
execute
in classMasterDetailAction
- Parameters:
objects
- The list of objects on which the action is executed
-
-