Search in sources :

Example 6 with State

use of org.eclipse.xtext.example.homeautomation.ruleEngine.State in project xtext-eclipse by eclipse.

the class RuleImpl method setDeviceState.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
@Override
public void setDeviceState(State newDeviceState) {
    State oldDeviceState = deviceState;
    deviceState = newDeviceState;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, RuleEnginePackage.RULE__DEVICE_STATE, oldDeviceState, deviceState));
}
Also used : State(org.eclipse.xtext.example.homeautomation.ruleEngine.State) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

State (org.eclipse.xtext.example.homeautomation.ruleEngine.State)6 Device (org.eclipse.xtext.example.homeautomation.ruleEngine.Device)3 Rule (org.eclipse.xtext.example.homeautomation.ruleEngine.Rule)3 JvmFormalParameter (org.eclipse.xtext.common.types.JvmFormalParameter)2 Model (org.eclipse.xtext.example.homeautomation.ruleEngine.Model)2 XBlockExpression (org.eclipse.xtext.xbase.XBlockExpression)2 XNumberLiteral (org.eclipse.xtext.xbase.XNumberLiteral)2 XStringLiteral (org.eclipse.xtext.xbase.XStringLiteral)2 XVariableDeclaration (org.eclipse.xtext.xbase.XVariableDeclaration)2 StringWriter (java.io.StringWriter)1 EList (org.eclipse.emf.common.util.EList)1 EObject (org.eclipse.emf.ecore.EObject)1 EPackage (org.eclipse.emf.ecore.EPackage)1 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 Resource (org.eclipse.emf.ecore.resource.Resource)1 StringConcatenationClient (org.eclipse.xtend2.lib.StringConcatenationClient)1 Action (org.eclipse.xtext.Action)1 Parameter (org.eclipse.xtext.Parameter)1 ParserRule (org.eclipse.xtext.ParserRule)1 JvmEnumerationLiteral (org.eclipse.xtext.common.types.JvmEnumerationLiteral)1