org.eclipse.emf.ecp.ui.e4.handlers
Class ImportHandler

java.lang.Object
  extended by org.eclipse.emf.ecp.ui.e4.handlers.ImportHandler

public class ImportHandler
extends Object

Handler to import an EObject.

Author:
David

Constructor Summary
ImportHandler()
           
 
Method Summary
 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
equals, 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(value="org.eclipse.ui.selection")@Optional
                            org.eclipse.emf.ecore.EObject eObject,
                            @Named(value="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


Copyright © 2014. All Rights Reserved.