Class ModelObjectAdoptSupport
- java.lang.Object
-
- com._1c.g5.v8.dt.md.ui.extension.commands.ModelObjectAdoptSupport
-
public class ModelObjectAdoptSupport extends Object
Special class to adopt object with ability to choose extension project.
-
-
Constructor Summary
Constructors Constructor Description ModelObjectAdoptSupport()
-
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.
-
-
-
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 benull
shell
- the activeShell
, can't benull
window
- the actualIWorkbenchWindow
, can't benull
- 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 benull
shell
- the activeShell
, can't benull
window
- the actualIWorkbenchWindow
, can't benull
- 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.
-
-