Package org.eclipse.emf.ecp.edit.spi
Interface ReferenceService
-
- All Superinterfaces:
ViewModelService
- All Known Implementing Classes:
ColumnConfigurationDMRRendererReferenceService
,DefaultReferenceService
,EcoreReferenceService
,ECPReferenceServiceImpl
public interface ReferenceService extends ViewModelService
- Since:
- 1.2
- Author:
- Eugen Neufeld
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
addExistingModelElements(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
Adds existing model elements to theEReference
.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 theEReference
.void
openInNewContext(org.eclipse.emf.ecore.EObject eObject)
Opens anEObject
in a new context.-
Methods inherited from interface org.eclipse.emf.ecp.view.spi.context.ViewModelService
dispose, getPriority, instantiate
-
-
-
-
Method Detail
-
addNewModelElements
@Deprecated void addNewModelElements(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
Deprecated.Adds new model elements to theEReference
. The implementation is responsible for providing a selection meachsims, e.g. a dialog.- Parameters:
eObject
- theEObject
to addeReference
- theEReference
to add theEObject
to- Since:
- 1.5
-
addNewModelElements
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 theEReference
. The implementation is responsible for providing a selection mechanism, e.g. a dialog.- Parameters:
eObject
- theEObject
to addeReference
- theEReference
to add theEObject
toopenInNewContext
- Hints the reference service whether the created model element should be opened in a new context- Returns:
- The created model element
- Since:
- 1.17
-
addExistingModelElements
void addExistingModelElements(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
Adds existing model elements to theEReference
. The implementation is responsible for providing a selection meachsims, e.g. a dialog.- Parameters:
eObject
- theEObject
to addeReference
- theEReference
to add theEObject
to- Since:
- 1.5
-
openInNewContext
void openInNewContext(org.eclipse.emf.ecore.EObject eObject)
Opens anEObject
in a new context.- Parameters:
eObject
- theEObject
to open in a new context
-
-