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;
}
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));
}
Aggregations