use of org.eclipse.xtext.parsetree.reconstr.serializationerror.TwoOptions in project xtext-core by eclipse.
the class IndentImpl method basicSetOpt.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetOpt(TwoOptions newOpt, NotificationChain msgs) {
TwoOptions oldOpt = opt;
opt = newOpt;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SerializationerrorPackage.INDENT__OPT, oldOpt, newOpt);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.parsetree.reconstr.serializationerror.TwoOptions in project xtext-core by eclipse.
the class SerializationErrorTestLanguageSemanticSequencer 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 == SerializationerrorPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case SerializationerrorPackage.INDENT:
sequence_Indent(context, (Indent) semanticObject);
return;
case SerializationerrorPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case SerializationerrorPackage.TWO_OPTIONS:
sequence_TwoOptions(context, (TwoOptions) semanticObject);
return;
case SerializationerrorPackage.TWO_REQUIRED:
sequence_TwoRequired(context, (TwoRequired) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations