Search in sources :

Example 1 with GExpression

use of org.eclipse.gemoc.gexpressions.GExpression in project gemoc-studio by eclipse.

the class GNavigationExpressionImpl method basicSetBody.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetBody(GExpression newBody, NotificationChain msgs) {
    GExpression oldBody = body;
    body = newBody;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GexpressionsPackage.GNAVIGATION_EXPRESSION__BODY, oldBody, newBody);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : GExpression(org.eclipse.gemoc.gexpressions.GExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 2 with GExpression

use of org.eclipse.gemoc.gexpressions.GExpression in project gemoc-studio by eclipse.

the class GBinaryOperatorExpressionImpl method basicSetRightOperand.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetRightOperand(GExpression newRightOperand, NotificationChain msgs) {
    GExpression oldRightOperand = rightOperand;
    rightOperand = newRightOperand;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GexpressionsPackage.GBINARY_OPERATOR_EXPRESSION__RIGHT_OPERAND, oldRightOperand, newRightOperand);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : GExpression(org.eclipse.gemoc.gexpressions.GExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 3 with GExpression

use of org.eclipse.gemoc.gexpressions.GExpression in project gemoc-studio by eclipse.

the class GBinaryOperatorExpressionImpl method basicSetLeftOperand.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetLeftOperand(GExpression newLeftOperand, NotificationChain msgs) {
    GExpression oldLeftOperand = leftOperand;
    leftOperand = newLeftOperand;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GexpressionsPackage.GBINARY_OPERATOR_EXPRESSION__LEFT_OPERAND, oldLeftOperand, newLeftOperand);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : GExpression(org.eclipse.gemoc.gexpressions.GExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 4 with GExpression

use of org.eclipse.gemoc.gexpressions.GExpression in project gemoc-studio by eclipse.

the class GBraceExpressionImpl method basicSetInnerExpression.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetInnerExpression(GExpression newInnerExpression, NotificationChain msgs) {
    GExpression oldInnerExpression = innerExpression;
    innerExpression = newInnerExpression;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GexpressionsPackage.GBRACE_EXPRESSION__INNER_EXPRESSION, oldInnerExpression, newInnerExpression);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : GExpression(org.eclipse.gemoc.gexpressions.GExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 5 with GExpression

use of org.eclipse.gemoc.gexpressions.GExpression in project gemoc-studio by eclipse.

the class GIfExpressionImpl method basicSetCondition.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetCondition(GExpression newCondition, NotificationChain msgs) {
    GExpression oldCondition = condition;
    condition = newCondition;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, GexpressionsPackage.GIF_EXPRESSION__CONDITION, oldCondition, newCondition);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : GExpression(org.eclipse.gemoc.gexpressions.GExpression) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

GExpression (org.eclipse.gemoc.gexpressions.GExpression)9 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)8 Injector (com.google.inject.Injector)1 URI (org.eclipse.emf.common.util.URI)1 Resource (org.eclipse.emf.ecore.resource.Resource)1 GProgram (org.eclipse.gemoc.gexpressions.GProgram)1 GExpressionsStandaloneSetup (org.eclipse.gemoc.gexpressions.xtext.GExpressionsStandaloneSetup)1 XtextResource (org.eclipse.xtext.resource.XtextResource)1 XtextResourceSet (org.eclipse.xtext.resource.XtextResourceSet)1 Serializer (org.eclipse.xtext.serializer.impl.Serializer)1