public class ColumnConfigurationDMRRendererReferenceService extends Object implements ReferenceService
ReferenceService
allowing stream lined DMR selection for VTableColumnConfigurations
.Constructor and Description |
---|
ColumnConfigurationDMRRendererReferenceService(Class<? extends VTableColumnConfiguration> columnConfigClass)
Constructor.
|
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 ColumnConfigurationDMRRendererReferenceService(Class<? extends VTableColumnConfiguration> columnConfigClass)
columnConfigClass
- the VTableColumnConfiguration
based class to be filteredpublic void instantiate(ViewModelContext context)
ViewModelService
instantiate
in interface ViewModelService
context
- the ViewModelContext
public void dispose()
ViewModelService
dispose
in interface ViewModelService
public int getPriority()
ViewModelService
getPriority
in interface ViewModelService
@Deprecated public 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
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)
ReferenceService
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)
ReferenceService
EObject
in a new context.openInNewContext
in interface ReferenceService
eObject
- the EObject
to open in a new contextCopyright © 2019. All rights reserved.