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 forVTreeMasterDetailVElements and registers the necessary ViewModelContexts.- Author:
- Eugen Neufeld
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDETAIL_KEYThe detail key passed to the view model context.static java.lang.StringROOT_KEYContext 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 voidchildContextAdded(VElement parentElement, EMFFormsViewContext childContext)Called when a child context is added.voidchildContextDisposed(EMFFormsViewContext childContext)Called when a child context is disposed.voidchildViewModelContextAdded(ViewModelContext childContext)This method is called whenever a newViewModelContextis added as a child context to the rootViewModelContextthisGlobalViewModelServicebelongs to.voidcontextDispose()Called by the context when the dispose is running.voidcontextInitialised()Called by the context when the initialization has finished.voiddispose()Dispose.intgetPriority()Returns the priority for this view service.voidinstantiate(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:ViewModelServiceInstantiate the view service.- Specified by:
instantiatein interfaceViewModelService- Parameters:
context- theViewModelContext
-
dispose
public void dispose()
Description copied from interface:ViewModelServiceDispose.- Specified by:
disposein interfaceViewModelService
-
getPriority
public int getPriority()
Description copied from interface:ViewModelServiceReturns the priority for this view service.- Specified by:
getPriorityin interfaceViewModelService- Returns:
- the priority
-
childViewModelContextAdded
public void childViewModelContextAdded(ViewModelContext childContext)
This method is called whenever a newViewModelContextis added as a child context to the rootViewModelContextthisGlobalViewModelServicebelongs to.- Specified by:
childViewModelContextAddedin interfaceGlobalViewModelService- Parameters:
childContext- TheViewModelContextthat 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:
childContextAddedin interfaceEMFFormsContextListener- Parameters:
parentElement- TheVElementthat is associated with the child contextchildContext- TheEMFFormsViewContextthat 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:
childContextDisposedin interfaceEMFFormsContextListener- Parameters:
childContext- TheEMFFormsViewContextthat 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:
contextInitialisedin interfaceEMFFormsContextListener- See Also:
EMFFormsContextListener.contextInitialised()
-
contextDispose
public void contextDispose()
Called by the context when the dispose is running.- Specified by:
contextDisposein interfaceEMFFormsContextListener- See Also:
EMFFormsContextListener.contextDispose()
-
-