public class NewModelElementHandler extends Object
ECPProject
s.Constructor and Description |
---|
NewModelElementHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(ECPProject ecpProject)
Checks if the current selection is an
ECPProject . |
void |
execute(org.eclipse.swt.widgets.Shell shell,
ECPProject ecpProject)
Opens a dialog to select a new
EObject to be created. |
@Execute public void execute(org.eclipse.swt.widgets.Shell shell, @Named(value="org.eclipse.ui.selection") @Optional ECPProject ecpProject)
EObject
to be created.shell
- the Shell to display the dialog.ecpProject
- the selected ECPProject
, parent of the newly created
EObject
@CanExecute public boolean canExecute(@Named(value="org.eclipse.ui.selection") @Optional ECPProject ecpProject)
ECPProject
.ecpProject
- the current selection, if it is an ECPProject
or null otherwise.ECPProject
Copyright © 2019. All rights reserved.