public class SaveProjectHandler extends Object
Constructor and Description |
---|
SaveProjectHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
canExecute(Object object)
Checks whether the current selection is adaptable to an
ECPProject and if so, whether this is dirty. |
void |
execute(Object object,
org.eclipse.e4.core.services.events.IEventBroker eventBroker)
Saves the current
ECPProject . |
@Execute public void execute(@Named(value="org.eclipse.ui.selection") @Optional Object object, org.eclipse.e4.core.services.events.IEventBroker eventBroker)
ECPProject
.object
- an object adaptable to an ECPProject
eventBroker
- the e4 event broker@CanExecute public boolean canExecute(@Named(value="org.eclipse.ui.selection") @Optional Object object)
ECPProject
and if so, whether this is dirty.object
- an object adaptable to an ECPProject
ECPProject
and dirty ot false otherwise.Copyright © 2019. All rights reserved.