org.eclipse.emf.ecp.view.spi.rule
Interface RuleServiceHelper

All Known Implementing Classes:
RuleServiceHelperImpl

public interface RuleServiceHelper

Since:
1.2
Author:
Eugen Neufeld

Method Summary
<T extends VElement>
Set<T>
getInvolvedEObjects(org.eclipse.emf.ecore.EStructuralFeature.Setting setting, Object newValue, org.eclipse.emf.ecore.EAttribute attribute, Class<T> renderableClass)
          Gets the involved EObjects that would be hidden or disabled if newValue would be set.
<T extends VElement>
Set<T>
getInvolvedEObjects(Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues, org.eclipse.emf.ecore.EAttribute changedAttribute, Class<T> renderableClass)
          Gets the involved EObjects that would be hidden or disabled if possibleNewValues would be set.
 

Method Detail

getInvolvedEObjects

<T extends VElement> Set<T> getInvolvedEObjects(org.eclipse.emf.ecore.EStructuralFeature.Setting setting,
                                                Object newValue,
                                                org.eclipse.emf.ecore.EAttribute attribute,
                                                Class<T> renderableClass)
Gets the involved EObjects that would be hidden or disabled if newValue would be set.

Type Parameters:
T - the type of the returned EObjects
Parameters:
setting - the setting
newValue - the new value
attribute - the EAttribute to find involved VElements for
renderableClass - the class type that has to be matched. Used for filtering the result set
Returns:
the involved VElements that match the given type T

getInvolvedEObjects

<T extends VElement> Set<T> getInvolvedEObjects(Map<org.eclipse.emf.ecore.EStructuralFeature.Setting,Object> possibleNewValues,
                                                org.eclipse.emf.ecore.EAttribute changedAttribute,
                                                Class<T> renderableClass)
Gets the involved EObjects that would be hidden or disabled if possibleNewValues would be set.

Type Parameters:
T - the type of the returned EObjects
Parameters:
possibleNewValues - a mapping of settings to their would-be new value
renderableClass - the class type that has to be matched. Used for filtering the result set
changedAttribute - the attribute that was changed
Returns:
the involved VElements that match the given type T


Copyright © 2014. All Rights Reserved.