public class DeleteProjectHandler extends Object
Constructor and Description |
---|
DeleteProjectHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(ECPProject ecpProject,
List<ECPProject> ecpProjects)
Checks if a single project or a list of projects are selected.
|
void |
execute(org.eclipse.swt.widgets.Shell shell,
ECPProject ecpProject,
List<ECPProject> ecpProjects)
Deletes a project or a list of projects, based on the selection.
|
@Execute public void execute(org.eclipse.swt.widgets.Shell shell, @Named(value="org.eclipse.ui.selection") @Optional ECPProject ecpProject, @Named(value="org.eclipse.ui.selection") @Optional List<ECPProject> ecpProjects)
shell
- the current shell to display a confimation dialog.ecpProject
- an ECPProject
, if only one is selected or null.ecpProjects
- a List of ECPProject
s, is several projects are
selected or null@CanExecute public boolean canExecute(@Named(value="org.eclipse.ui.selection") @Optional ECPProject ecpProject, @Named(value="org.eclipse.ui.selection") @Optional List<ECPProject> ecpProjects)
ecpProject
- an ECPProject
, if only one is selected or null.ecpProjects
- a List of ECPProject
s, is several projects are
selected or nullCopyright © 2019. All rights reserved.