use of org.eclipse.xtext.serializer.hiddentokensequencertest.DomainModel in project xtext-core by eclipse.
the class ModelImpl method basicSetDomainModel.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetDomainModel(DomainModel newDomainModel, NotificationChain msgs) {
DomainModel oldDomainModel = domainModel;
domainModel = newDomainModel;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, HiddentokensequencertestPackage.MODEL__DOMAIN_MODEL, oldDomainModel, newDomainModel);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.serializer.hiddentokensequencertest.DomainModel in project xtext-core by eclipse.
the class HiddenTokenSequencerTestLanguageSemanticSequencer 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 == HiddentokensequencertestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case HiddentokensequencertestPackage.DOMAIN_MODEL:
sequence_DomainModel(context, (DomainModel) semanticObject);
return;
case HiddentokensequencertestPackage.ENTITY:
sequence_Entity(context, (Entity) semanticObject);
return;
case HiddentokensequencertestPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations