use of org.eclipse.xtext.testlanguages.optionalEmpty.Greeting in project xtext-core by eclipse.
the class OptionalEmptyTestLanguageSemanticSequencer 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 == OptionalEmptyPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case OptionalEmptyPackage.GREETING:
sequence_Greeting(context, (Greeting) semanticObject);
return;
case OptionalEmptyPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.testlanguages.optionalEmpty.Greeting in project xtext-core by eclipse.
the class ModelImpl method basicSetChild.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetChild(Greeting newChild, NotificationChain msgs) {
Greeting oldChild = child;
child = newChild;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, OptionalEmptyPackage.MODEL__CHILD, oldChild, newChild);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations