Class RuleServiceHelperImpl
- java.lang.Object
-
- org.eclipse.emf.ecp.view.internal.rule.RuleServiceHelperImpl
-
- All Implemented Interfaces:
ViewModelService
,RuleServiceHelper
public class RuleServiceHelperImpl extends java.lang.Object implements ViewModelService, RuleServiceHelper
- Author:
- emueller
-
-
Constructor Summary
Constructors Constructor Description RuleServiceHelperImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose.<T extends VElement>
java.util.Set<T>getInvolvedEObjects(org.eclipse.emf.ecore.EStructuralFeature.Setting setting, java.lang.Object newValue, java.lang.Class<T> renderableClass)
Gets the involvedEObject
s that would be hidden or disabled ifnewValue
would be set.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()
-
getInvolvedEObjects
public <T extends VElement> java.util.Set<T> getInvolvedEObjects(org.eclipse.emf.ecore.EStructuralFeature.Setting setting, java.lang.Object newValue, java.lang.Class<T> renderableClass)
Gets the involvedEObject
s that would be hidden or disabled ifnewValue
would be set.- Specified by:
getInvolvedEObjects
in interfaceRuleServiceHelper
- Type Parameters:
T
- the type of the returnedEObject
s- Parameters:
setting
- the current settingnewValue
- the new value which may be setrenderableClass
- the class type that has to be matched. Used for filtering the result set- Returns:
- the involved
VElement
s that match the given typeT
- See Also:
RuleServiceHelper.getInvolvedEObjects(org.eclipse.emf.ecore.EStructuralFeature.Setting, java.lang.Object, java.lang.Class)
-
-