public interface EMFFormsViewContext
Modifier and Type | Method and Description |
---|---|
void |
changeDomainModel(org.eclipse.emf.ecore.EObject newDomainModel)
Changes the domain model of this view context to the given
EObject . |
org.eclipse.emf.ecore.EObject |
getDomainModel()
Gets the domain model.
|
<T> T |
getService(Class<T> serviceType)
Retrieve a service of type
serviceType . |
VElement |
getViewModel()
Gets the view model.
|
void |
registerDomainChangeListener(ModelChangeListener modelChangeListener)
Register domain change listener.
|
void |
registerEMFFormsContextListener(EMFFormsContextListener contextListener)
Register an
EMFFormsContextListener . |
void |
registerRootDomainModelChangeListener(RootDomainModelChangeListener rootDomainModelChangeListener)
Register a
RootDomainModelChangeListener . |
void |
registerViewChangeListener(ModelChangeListener modelChangeListener)
Register view change listener.
|
void |
unregisterDomainChangeListener(ModelChangeListener modelChangeListener)
Unregister domain change listener.
|
void |
unregisterEMFFormsContextListener(EMFFormsContextListener contextListener)
Unregister an
EMFFormsContextListener . |
void |
unregisterRootDomainModelChangeListener(RootDomainModelChangeListener rootDomainModelChangeListener)
Unregister a
RootDomainModelChangeListener . |
void |
unregisterViewChangeListener(ModelChangeListener modelChangeListener)
Unregister view change listener.
|
VElement getViewModel()
void registerViewChangeListener(ModelChangeListener modelChangeListener)
modelChangeListener
- the model change listenervoid unregisterViewChangeListener(ModelChangeListener modelChangeListener)
modelChangeListener
- the model change listenerorg.eclipse.emf.ecore.EObject getDomainModel()
void registerDomainChangeListener(ModelChangeListener modelChangeListener)
modelChangeListener
- the model change listenervoid unregisterDomainChangeListener(ModelChangeListener modelChangeListener)
modelChangeListener
- the model change listenervoid registerEMFFormsContextListener(EMFFormsContextListener contextListener)
EMFFormsContextListener
.contextListener
- the EMFFormsContextListener
to registervoid unregisterEMFFormsContextListener(EMFFormsContextListener contextListener)
EMFFormsContextListener
.contextListener
- the EMFFormsContextListener
to unregister<T> T getService(Class<T> serviceType)
serviceType
.T
- the type of the desired serviceserviceType
- the type of the service to be retrievedvoid changeDomainModel(org.eclipse.emf.ecore.EObject newDomainModel)
EObject
.newDomainModel
- The new domain modelgetDomainModel()
void registerRootDomainModelChangeListener(RootDomainModelChangeListener rootDomainModelChangeListener)
RootDomainModelChangeListener
.rootDomainModelChangeListener
- The RootDomainModelChangeListener
to registervoid unregisterRootDomainModelChangeListener(RootDomainModelChangeListener rootDomainModelChangeListener)
RootDomainModelChangeListener
.rootDomainModelChangeListener
- The RootDomainModelChangeListener
to unregisterCopyright © 2018. All rights reserved.