Class SaveProjectHandler


  • public class SaveProjectHandler
    extends java.lang.Object
    Author:
    Eugen
    • 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 an ECPProject and if so, whether this is dirty.
      void execute​(java.lang.Object object, org.eclipse.e4.core.services.events.IEventBroker eventBroker)
      Saves the current ECPProject.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SaveProjectHandler

        public SaveProjectHandler()
    • 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 current ECPProject.
        Parameters:
        object - an object adaptable to an ECPProject
        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 an ECPProject and if so, whether this is dirty.
        Parameters:
        object - an object adaptable to an ECPProject
        Returns:
        true if the object is adaptable to an ECPProject and dirty ot false otherwise.