Search in sources :

Example 1 with P2

use of org.eclipse.xtext.testlanguages.actionLang3.P2 in project xtext-core by eclipse.

the class P3Impl method basicSetP.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetP(P2 newP, NotificationChain msgs) {
    P2 oldP = p;
    p = newP;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ActionLang3Package.P3__P, oldP, newP);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : P2(org.eclipse.xtext.testlanguages.actionLang3.P2) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 2 with P2

use of org.eclipse.xtext.testlanguages.actionLang3.P2 in project xtext-core by eclipse.

the class ActionTestLanguage3SemanticSequencer method sequence.

@Override
public void sequence(ISerializationContext context, EObject semanticObject) {
    EPackage epackage = semanticObject.eClass().getEPackage();
    ParserRule rule = context.getParserRule();
    Action action = context.getAssignedAction();
    Set<Parameter> parameters = context.getEnabledBooleanParameters();
    if (epackage == ActionLang3Package.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case ActionLang3Package.ENTRY:
                sequence_ProductionRule2(context, (Entry) semanticObject);
                return;
            case ActionLang3Package.P1:
                sequence_ProductionRule1_P2_2(context, (P1) semanticObject);
                return;
            case ActionLang3Package.P2:
                sequence_ProductionRule1_P3_4(context, (P2) semanticObject);
                return;
            case ActionLang3Package.P3:
                sequence_ProductionRule1(context, (P3) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) P1(org.eclipse.xtext.testlanguages.actionLang3.P1) Action(org.eclipse.xtext.Action) Entry(org.eclipse.xtext.testlanguages.actionLang3.Entry) P2(org.eclipse.xtext.testlanguages.actionLang3.P2) P3(org.eclipse.xtext.testlanguages.actionLang3.P3) Parameter(org.eclipse.xtext.Parameter) EPackage(org.eclipse.emf.ecore.EPackage)

Aggregations

P2 (org.eclipse.xtext.testlanguages.actionLang3.P2)2 EPackage (org.eclipse.emf.ecore.EPackage)1 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 Action (org.eclipse.xtext.Action)1 Parameter (org.eclipse.xtext.Parameter)1 ParserRule (org.eclipse.xtext.ParserRule)1 Entry (org.eclipse.xtext.testlanguages.actionLang3.Entry)1 P1 (org.eclipse.xtext.testlanguages.actionLang3.P1)1 P3 (org.eclipse.xtext.testlanguages.actionLang3.P3)1