Class ModelObjectAdoptSupport


  • public class ModelObjectAdoptSupport
    extends Object
    Special class to adopt object with ability to choose extension project.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.eclipse.emf.ecore.EObject adoptObject​(org.eclipse.emf.ecore.EObject modelObject, org.eclipse.swt.widgets.Shell shell, org.eclipse.ui.IWorkbenchWindow window)
      Adopts the target model object with ability to choose extension project.
      List<org.eclipse.emf.ecore.EObject> adoptObjects​(List<org.eclipse.emf.ecore.EObject> modelObjects, org.eclipse.swt.widgets.Shell shell, org.eclipse.ui.IWorkbenchWindow window)
      Adopts the target model object list with ability to choose extension project.
    • Constructor Detail

      • ModelObjectAdoptSupport

        public ModelObjectAdoptSupport()
    • Method Detail

      • adoptObject

        public org.eclipse.emf.ecore.EObject adoptObject​(org.eclipse.emf.ecore.EObject modelObject,
                                                         org.eclipse.swt.widgets.Shell shell,
                                                         org.eclipse.ui.IWorkbenchWindow window)
                                                  throws org.eclipse.core.commands.ExecutionException
        Adopts the target model object with ability to choose extension project.
        Parameters:
        modelObject - the target object to adopt, can't be null
        shell - the active Shell, can't be null
        window - the actual IWorkbenchWindow, can't be null
        Returns:
        an adopted target object, can be null if object wasn't adopted
        Throws:
        org.eclipse.core.commands.ExecutionException - if an exception occurred during execution.
      • adoptObjects

        public List<org.eclipse.emf.ecore.EObject> adoptObjects​(List<org.eclipse.emf.ecore.EObject> modelObjects,
                                                                org.eclipse.swt.widgets.Shell shell,
                                                                org.eclipse.ui.IWorkbenchWindow window)
                                                         throws org.eclipse.core.commands.ExecutionException
        Adopts the target model object list with ability to choose extension project.
        Parameters:
        modelObjects - a list of target object to adopt, can't be null
        shell - the active Shell, can't be null
        window - the actual IWorkbenchWindow, can't be null
        Returns:
        a list pf adopted target objects, can be empty if object wasn't adopted, never null
        Throws:
        org.eclipse.core.commands.ExecutionException - if an exception occurred during execution.