public class CreateNewInstanceAction extends MasterDetailAction
Constructor and Description |
---|
CreateNewInstanceAction()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
Object |
execute(org.eclipse.core.commands.ExecutionEvent event) |
void |
execute(List<Object> objects) |
boolean |
shouldShow(List<Object> objects) |
getImagePath, getLabel, getTreeViewer, setImagePath, setLabel, setTreeViewer
addHandlerListener, dispose, fireHandlerChanged, hasListeners, isEnabled, isHandled, removeHandlerListener, setBaseEnabled, setEnabled
public Object execute(org.eclipse.core.commands.ExecutionEvent event) throws org.eclipse.core.commands.ExecutionException
org.eclipse.core.commands.ExecutionException
public boolean shouldShow(List<Object> objects)
shouldShow
in class MasterDetailAction
objects
- the list of objects on which to test if the action can be executedpublic void execute(List<Object> objects)
execute
in class MasterDetailAction
objects
- The list of objects on which the action is executedCopyright © 2019. All rights reserved.