Search in sources :

Example 6 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class CastedExpressionImpl method basicSetTarget.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTarget(Expression newTarget, NotificationChain msgs) {
    Expression oldTarget = target;
    target = newTarget;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.CASTED_EXPRESSION__TARGET, oldTarget, newTarget);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : CastedExpression(com.avaloq.tools.ddk.xtext.expression.expression.CastedExpression) Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 7 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class CollectionExpressionImpl method basicSetExp.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetExp(Expression newExp, NotificationChain msgs) {
    Expression oldExp = exp;
    exp = newExp;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.COLLECTION_EXPRESSION__EXP, oldExp, newExp);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) CollectionExpression(com.avaloq.tools.ddk.xtext.expression.expression.CollectionExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 8 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class CollectionExpressionImpl method basicSetTarget.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetTarget(Expression newTarget, NotificationChain msgs) {
    Expression oldTarget = target;
    target = newTarget;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.COLLECTION_EXPRESSION__TARGET, oldTarget, newTarget);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) CollectionExpression(com.avaloq.tools.ddk.xtext.expression.expression.CollectionExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 9 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class CaseImpl method basicSetCondition.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetCondition(Expression newCondition, NotificationChain msgs) {
    Expression oldCondition = condition;
    condition = newCondition;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.CASE__CONDITION, oldCondition, newCondition);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 10 with Expression

use of com.avaloq.tools.ddk.xtext.expression.expression.Expression in project dsl-devkit by dsldevkit.

the class CaseImpl method basicSetThenPar.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetThenPar(Expression newThenPar, NotificationChain msgs) {
    Expression oldThenPar = thenPar;
    thenPar = newThenPar;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ExpressionPackage.CASE__THEN_PAR, oldThenPar, newThenPar);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : Expression(com.avaloq.tools.ddk.xtext.expression.expression.Expression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

Expression (com.avaloq.tools.ddk.xtext.expression.expression.Expression)36 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)33 GlobalScopeExpression (com.avaloq.tools.ddk.xtext.scope.scope.GlobalScopeExpression)4 IfExpression (com.avaloq.tools.ddk.xtext.expression.expression.IfExpression)3 DataExpression (com.avaloq.tools.ddk.xtext.scope.scope.DataExpression)3 ChainExpression (com.avaloq.tools.ddk.xtext.expression.expression.ChainExpression)2 CollectionExpression (com.avaloq.tools.ddk.xtext.expression.expression.CollectionExpression)2 LetExpression (com.avaloq.tools.ddk.xtext.expression.expression.LetExpression)2 SwitchExpression (com.avaloq.tools.ddk.xtext.expression.expression.SwitchExpression)2 SimpleScopeExpression (com.avaloq.tools.ddk.xtext.scope.scope.SimpleScopeExpression)2 InterfaceExpression (com.avaloq.tools.ddk.xtext.export.export.InterfaceExpression)1 CastedExpression (com.avaloq.tools.ddk.xtext.expression.expression.CastedExpression)1 TypeSelectExpression (com.avaloq.tools.ddk.xtext.expression.expression.TypeSelectExpression)1 FactoryExpression (com.avaloq.tools.ddk.xtext.scope.scope.FactoryExpression)1 NamingExpression (com.avaloq.tools.ddk.xtext.scope.scope.NamingExpression)1 ScopeDefinition (com.avaloq.tools.ddk.xtext.scope.scope.ScopeDefinition)1 ScopeExpression (com.avaloq.tools.ddk.xtext.scope.scope.ScopeExpression)1 ScopeRule (com.avaloq.tools.ddk.xtext.scope.scope.ScopeRule)1 AbstractXtextTest (com.avaloq.tools.ddk.xtext.test.AbstractXtextTest)1 Check (org.eclipse.xtext.validation.Check)1