EcoreReferenceStrategyProvider
and related classes.@Deprecated public class EcoreReferenceService extends DefaultReferenceService
Constructor and Description |
---|
EcoreReferenceService()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
addExistingModelElements(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference)
Deprecated.
Adds existing model elements to the
EReference . |
void |
addNewModelElements(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference)
Deprecated.
Adds new model elements to the
EReference . |
Optional<org.eclipse.emf.ecore.EObject> |
addNewModelElements(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference,
boolean openInNewContext)
Deprecated.
Adds new model elements to the
EReference . |
void |
dispose()
Deprecated.
Dispose.
|
int |
getPriority()
Deprecated.
Returns the priority for this view service.
|
void |
instantiate(ViewModelContext context)
Deprecated.
Instantiate the view service.
|
void |
openInNewContext(org.eclipse.emf.ecore.EObject eObject)
Deprecated.
Opens an
EObject in a new context. |
public void instantiate(ViewModelContext context)
ViewModelService
instantiate
in interface ViewModelService
instantiate
in class DefaultReferenceService
context
- the ViewModelContext
public void dispose()
ViewModelService
dispose
in interface ViewModelService
dispose
in class DefaultReferenceService
public int getPriority()
ViewModelService
getPriority
in interface ViewModelService
getPriority
in class DefaultReferenceService
public void openInNewContext(org.eclipse.emf.ecore.EObject eObject)
ReferenceService
EObject
in a new context.openInNewContext
in interface ReferenceService
openInNewContext
in class DefaultReferenceService
eObject
- the EObject
to open in a new contextpublic void addExistingModelElements(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
ReferenceService
EReference
.
The implementation is responsible for providing a selection meachsims, e.g. a dialog.addExistingModelElements
in interface ReferenceService
addExistingModelElements
in class DefaultReferenceService
eObject
- the EObject
to addeReference
- the EReference
to add the EObject
topublic void addNewModelElements(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
ReferenceService
EReference
.
The implementation is responsible for providing a selection meachsims, e.g. a dialog.addNewModelElements
in interface ReferenceService
addNewModelElements
in class DefaultReferenceService
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
addNewModelElements
in class DefaultReferenceService
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
contextCopyright © 2019. All rights reserved.