Class TreeMasterDetailValidationInitiator
- java.lang.Object
-
- org.eclipse.emf.ecp.view.treemasterdetail.internal.validation.TreeMasterDetailValidationInitiator
-
- All Implemented Interfaces:
GlobalViewModelService
,ViewModelService
,EMFFormsContextListener
public class TreeMasterDetailValidationInitiator extends java.lang.Object implements GlobalViewModelService, EMFFormsContextListener
The TreeMasterDatailValidationInitiator searches forVTreeMasterDetail
VElements and registers the necessary ViewModelContexts.- Author:
- Eugen Neufeld
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DETAIL_KEY
The detail key passed to the view model context.static java.lang.String
ROOT_KEY
Context key for the root.
-
Constructor Summary
Constructors Constructor Description TreeMasterDetailValidationInitiator()
Constructor of the Initiator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
childContextAdded(VElement parentElement, EMFFormsViewContext childContext)
Called when a child context is added.void
childContextDisposed(EMFFormsViewContext childContext)
Called when a child context is disposed.void
childViewModelContextAdded(ViewModelContext childContext)
This method is called whenever a newViewModelContext
is added as a child context to the rootViewModelContext
thisGlobalViewModelService
belongs to.void
contextDispose()
Called by the context when the dispose is running.void
contextInitialised()
Called by the context when the initialization has finished.void
dispose()
Dispose.int
getPriority()
Returns the priority for this view service.void
instantiate(ViewModelContext context)
Instantiate the view service.
-
-
-
Field Detail
-
DETAIL_KEY
public static final java.lang.String DETAIL_KEY
The detail key passed to the view model context.- See Also:
- Constant Field Values
-
ROOT_KEY
public static final java.lang.String ROOT_KEY
Context key for the root.- See Also:
- Constant Field Values
-
-
Method Detail
-
instantiate
public void instantiate(ViewModelContext context)
Description copied from interface:ViewModelService
Instantiate the view service.- Specified by:
instantiate
in interfaceViewModelService
- Parameters:
context
- theViewModelContext
-
dispose
public void dispose()
Description copied from interface:ViewModelService
Dispose.- Specified by:
dispose
in interfaceViewModelService
-
getPriority
public int getPriority()
Description copied from interface:ViewModelService
Returns the priority for this view service.- Specified by:
getPriority
in interfaceViewModelService
- Returns:
- the priority
-
childViewModelContextAdded
public void childViewModelContextAdded(ViewModelContext childContext)
This method is called whenever a newViewModelContext
is added as a child context to the rootViewModelContext
thisGlobalViewModelService
belongs to.- Specified by:
childViewModelContextAdded
in interfaceGlobalViewModelService
- Parameters:
childContext
- TheViewModelContext
that was added.- See Also:
GlobalViewModelService.childViewModelContextAdded(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
-
childContextAdded
public void childContextAdded(VElement parentElement, EMFFormsViewContext childContext)
Called when a child context is added.- Specified by:
childContextAdded
in interfaceEMFFormsContextListener
- Parameters:
parentElement
- TheVElement
that is associated with the child contextchildContext
- TheEMFFormsViewContext
that was added- See Also:
EMFFormsContextListener.childContextAdded(org.eclipse.emf.ecp.view.spi.model.VElement, org.eclipse.emfforms.spi.core.services.view.EMFFormsViewContext)
-
childContextDisposed
public void childContextDisposed(EMFFormsViewContext childContext)
Called when a child context is disposed.- Specified by:
childContextDisposed
in interfaceEMFFormsContextListener
- Parameters:
childContext
- TheEMFFormsViewContext
that was disposed- See Also:
EMFFormsContextListener.childContextDisposed(org.eclipse.emfforms.spi.core.services.view.EMFFormsViewContext)
-
contextInitialised
public void contextInitialised()
Called by the context when the initialization has finished.- Specified by:
contextInitialised
in interfaceEMFFormsContextListener
- See Also:
EMFFormsContextListener.contextInitialised()
-
contextDispose
public void contextDispose()
Called by the context when the dispose is running.- Specified by:
contextDispose
in interfaceEMFFormsContextListener
- See Also:
EMFFormsContextListener.contextDispose()
-
-