public class ECPReferenceServiceImpl extends Object implements ReferenceService
Constructor and Description |
---|
ECPReferenceServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
addExistingModelElements(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference)
Adds existing model elements to the
EReference . |
void |
addNewModelElements(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference)
Deprecated.
|
Optional<org.eclipse.emf.ecore.EObject> |
addNewModelElements(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference,
boolean openInNewContext)
Adds new model elements to the
EReference . |
void |
dispose()
Dispose.
|
int |
getPriority()
Returns the priority for this view service.
|
void |
instantiate(ViewModelContext context)
Instantiate the view service.
|
void |
openInNewContext(org.eclipse.emf.ecore.EObject eObject)
Opens an
EObject in a new context. |
public void instantiate(ViewModelContext context)
instantiate
in interface ViewModelService
context
- the ViewModelContext
ViewModelService.instantiate(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
public void dispose()
dispose
in interface ViewModelService
ViewModelService.dispose()
public int getPriority()
getPriority
in interface ViewModelService
ViewModelService.getPriority()
@Deprecated public void addNewModelElements(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
EReference
.
The implementation is responsible for providing a selection meachsims, e.g. a dialog.addNewModelElements
in interface ReferenceService
eObject
- the EObject
to addeReference
- the EReference
to add the EObject
topublic Optional<org.eclipse.emf.ecore.EObject> addNewModelElements(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference, boolean openInNewContext)
ReferenceService
EReference
.
The implementation is responsible for providing a selection mechanism, e.g. a dialog.addNewModelElements
in interface ReferenceService
eObject
- the EObject
to addeReference
- the EReference
to add the EObject
toopenInNewContext
- Hints the reference service whether the created model element should be opened in a new
contextpublic void addExistingModelElements(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
EReference
.
The implementation is responsible for providing a selection meachsims, e.g. a dialog.addExistingModelElements
in interface ReferenceService
eObject
- the EObject
to addeReference
- the EReference
to add the EObject
topublic void openInNewContext(org.eclipse.emf.ecore.EObject eObject)
EObject
in a new context.openInNewContext
in interface ReferenceService
eObject
- the EObject
to open in a new contextReferenceService.openInNewContext(org.eclipse.emf.ecore.EObject)
Copyright © 2019. All rights reserved.