Class ECPImportHandlerHelper


  • public final class ECPImportHandlerHelper
    extends java.lang.Object
    A utility class which provides support for importing EObjects.
    Author:
    David
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String[] FILTER_EXTS
      These filter extensions are used to filter which files are displayed.
      static java.lang.String[] FILTER_NAMES
      These filter names are used to filter which files are displayed.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void importElement​(org.eclipse.swt.widgets.Shell shell, org.eclipse.emf.ecore.EObject eObject)
      Connects an EObject with another imported EObject which will be selected via a dialog.
      static void importElement​(org.eclipse.swt.widgets.Shell shell, ECPProject ecpProject)
      Connects an EObject with another imported EObject which will be selected via a dialog.
      • Methods inherited from class java.lang.Object

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

      • FILTER_EXTS

        public static final java.lang.String[] FILTER_EXTS
        These filter extensions are used to filter which files are displayed.
      • FILTER_NAMES

        public static final java.lang.String[] FILTER_NAMES
        These filter names are used to filter which files are displayed.
    • Method Detail

      • importElement

        public static void importElement​(org.eclipse.swt.widgets.Shell shell,
                                         org.eclipse.emf.ecore.EObject eObject)
        Connects an EObject with another imported EObject which will be selected via a dialog.
        Parameters:
        shell - The Shell which should be used for the dialog
        eObject - The EObject which should be connected with the imported EObject
      • importElement

        public static void importElement​(org.eclipse.swt.widgets.Shell shell,
                                         ECPProject ecpProject)
        Connects an EObject with another imported EObject which will be selected via a dialog.
        Parameters:
        shell - The Shell which should be used for the dialog
        ecpProject - The ECPProject where the EObject should be imported into