|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecp.view.treemasterdetail.ui.swt.internal.DummyReferenceService
public class DummyReferenceService
A dummy service.
Constructor Summary | |
---|---|
DummyReferenceService()
|
Method Summary | |
---|---|
void |
addModelElement(org.eclipse.emf.ecore.EObject eObject,
org.eclipse.emf.ecore.EReference eReference)
Adds a model element to the EReference . |
void |
dispose()
Dispose. |
org.eclipse.emf.ecore.EObject |
getExistingElementFor(org.eclipse.emf.ecore.EReference eReference)
Returns an existing EObject that is suitable for the passed EReference . |
org.eclipse.emf.ecore.EObject |
getNewElementFor(org.eclipse.emf.ecore.EReference eReference)
Returns a new EObject that is suitable for the passed EReference . |
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DummyReferenceService()
Method Detail |
---|
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()
public void addModelElement(org.eclipse.emf.ecore.EObject eObject, org.eclipse.emf.ecore.EReference eReference)
EReference
.
addModelElement
in interface ReferenceService
eObject
- the EObject
to addeReference
- the EReference
to add the EObject
toReferenceService.addModelElement(org.eclipse.emf.ecore.EObject,
org.eclipse.emf.ecore.EReference)
public org.eclipse.emf.ecore.EObject getNewElementFor(org.eclipse.emf.ecore.EReference eReference)
EObject
that is suitable for the passed EReference
.
getNewElementFor
in interface ReferenceService
eReference
- the reference to create the element for
ReferenceService.getNewElementFor(org.eclipse.emf.ecore.EReference)
public org.eclipse.emf.ecore.EObject getExistingElementFor(org.eclipse.emf.ecore.EReference eReference)
EObject
that is suitable for the passed EReference
.
getExistingElementFor
in interface ReferenceService
eReference
- the EReference
to find an existing Element for
EObject
that can be used in this EReference
, the returned EObject must
already be in the containment treeReferenceService.getExistingElementFor(org.eclipse.emf.ecore.EReference)
public 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)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |