Class SaveProjectHandler
- java.lang.Object
-
- org.eclipse.emf.ecp.ui.e4.handlers.SaveProjectHandler
-
public class SaveProjectHandler extends java.lang.Object
- Author:
- Eugen
-
-
Constructor Summary
Constructors Constructor Description SaveProjectHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canExecute(java.lang.Object object)
Checks whether the current selection is adaptable to anECPProject
and if so, whether this is dirty.void
execute(java.lang.Object object, org.eclipse.e4.core.services.events.IEventBroker eventBroker)
Saves the currentECPProject
.
-
-
-
Method Detail
-
execute
@Execute public void execute(@Named("org.eclipse.ui.selection") @Optional java.lang.Object object, org.eclipse.e4.core.services.events.IEventBroker eventBroker)
Saves the currentECPProject
.- Parameters:
object
- an object adaptable to anECPProject
eventBroker
- the e4 event broker
-
canExecute
@CanExecute public boolean canExecute(@Named("org.eclipse.ui.selection") @Optional java.lang.Object object)
Checks whether the current selection is adaptable to anECPProject
and if so, whether this is dirty.- Parameters:
object
- an object adaptable to anECPProject
- Returns:
- true if the object is adaptable to an
ECPProject
and dirty ot false otherwise.
-
-