Class ImportHandler


  • public class ImportHandler
    extends java.lang.Object
    Handler to import an EObject.
    Author:
    David
    • Constructor Summary

      Constructors 
      Constructor Description
      ImportHandler()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void execute​(org.eclipse.swt.widgets.Shell shell, org.eclipse.emf.ecore.EObject eObject, ECPProject ecpProject)
      Imports an EObject which will be selected via a dialog into the current project.
      • Methods inherited from class java.lang.Object

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

      • ImportHandler

        public ImportHandler()
    • Method Detail

      • execute

        @Execute
        public void execute​(org.eclipse.swt.widgets.Shell shell,
                            @Named("org.eclipse.ui.selection") @Optional
                            org.eclipse.emf.ecore.EObject eObject,
                            @Named("org.eclipse.ui.selection") @Optional
                            ECPProject ecpProject)
        Imports an EObject which will be selected via a dialog into the current project.
        Parameters:
        shell - Shell which should be used for the dialogs
        eObject - The selected EObject which should be connected with the imported EObject or null if an ECPProject was selected
        ecpProject - The selected ECPProject which should be connected with the imported EObject or null if an EObject was selected