public class DeleteModelElementHandler extends Object
EObject
.Constructor and Description |
---|
DeleteModelElementHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(org.eclipse.emf.ecore.EObject eObject,
List<org.eclipse.emf.ecore.EObject> eObjects)
Checks if one EObject or a list of EObjects are selected.
|
void |
execute(org.eclipse.emf.ecore.EObject eObject,
List<org.eclipse.emf.ecore.EObject> eObjects)
Deletes a single
EObject or a list of EObject . |
@Execute public void execute(@Named(value="org.eclipse.ui.selection") @Optional org.eclipse.emf.ecore.EObject eObject, @Named(value="org.eclipse.ui.selection") @Optional List<org.eclipse.emf.ecore.EObject> eObjects)
EObject
or a list of EObject
.eObject
- the eobject to be deleted or null, if several eobjects are to be deleted.eObjects
- A List of EObjects to be deleted or null, if only one EObject
should be deleted.@CanExecute public boolean canExecute(@Named(value="org.eclipse.ui.selection") @Optional org.eclipse.emf.ecore.EObject eObject, @Named(value="org.eclipse.ui.selection") @Optional List<org.eclipse.emf.ecore.EObject> eObjects)
eObject
- the selected eobject or null, if several or none eobjects are selected.eObjects
- the list of selected eobjects or null, if one or none eobjects are selected.Copyright © 2019. All rights reserved.