Class UnsetService
- java.lang.Object
-
- org.eclipse.emf.ecp.view.internal.unset.UnsetService
-
- All Implemented Interfaces:
ViewModelService
,EMFFormsContextListener
public class UnsetService extends java.lang.Object implements ViewModelService, EMFFormsContextListener
Unset service that, once instantiated, synchronizes the visible state of a view and its children with the affected EStructuralFeature(s), i.e. setting/unsetting the value(s).- Author:
- jfaltermeier
-
-
Constructor Summary
Constructors Constructor Description UnsetService()
Default constructor for the unset service.
-
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
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.
-
-
-
Method Detail
-
instantiate
public void instantiate(ViewModelContext context)
Instantiate the view service.- Specified by:
instantiate
in interfaceViewModelService
- Parameters:
context
- theViewModelContext
- See Also:
ViewModelService.instantiate(org.eclipse.emf.ecp.view.spi.context.ViewModelContext)
-
dispose
public void dispose()
Dispose.- Specified by:
dispose
in interfaceViewModelService
- See Also:
ViewModelService.dispose()
-
getPriority
public int getPriority()
Returns the priority for this view service.- Specified by:
getPriority
in interfaceViewModelService
- Returns:
- the priority
- See Also:
ViewModelService.getPriority()
-
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()
-
-