public abstract class AbstractEEFController extends java.lang.Object implements IEEFController
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.sirius.common.interpreter.api.IInterpreter |
interpreter
The interpreter.
|
protected org.eclipse.sirius.common.interpreter.api.IVariableManager |
variableManager
The variable manager.
|
Constructor and Description |
---|
AbstractEEFController(org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager,
org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter)
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract org.eclipse.emf.ecore.EObject |
getValidationRulesContainer()
Returns the EObject containing the validation rules.
|
protected abstract org.eclipse.emf.ecore.EReference |
getValidationRulesReference()
Returns the EReference containing the validation rules.
|
protected EvalFactory.Eval<java.lang.Object> |
newEval()
|
void |
onValidation(IConsumer<java.util.List<IValidationRuleResult>> consumer)
Registers a consumer which will be called with the validation status.
|
void |
refresh()
Refresh the controller.
|
void |
removeValidationConsumer()
Removes the consumer of the validation.
|
protected org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter
protected org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager
public AbstractEEFController(org.eclipse.sirius.common.interpreter.api.IVariableManager variableManager, org.eclipse.sirius.common.interpreter.api.IInterpreter interpreter)
variableManager
- The variable managerinterpreter
- The interpreterprotected EvalFactory.Eval<java.lang.Object> newEval()
public void onValidation(IConsumer<java.util.List<IValidationRuleResult>> consumer)
onValidation
in interface IEEFController
consumer
- The consumer of the validation statusIEEFController.onValidation(org.eclipse.eef.core.api.controllers.IConsumer)
public void removeValidationConsumer()
removeValidationConsumer
in interface IEEFController
IEEFController.removeValidationConsumer()
public void refresh()
refresh
in interface IEEFController
IEEFController.refresh()
protected abstract org.eclipse.emf.ecore.EObject getValidationRulesContainer()
protected abstract org.eclipse.emf.ecore.EReference getValidationRulesReference()