use of org.eclipse.xtext.linking.bug289059Test.Model in project xtext-core by eclipse.
the class Bug289059TestLanguageSemanticSequencer 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 == Bug289059TestPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug289059TestPackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case Bug289059TestPackage.UNASSIGNED_ACTION:
sequence_UnassignedAction(context, (UnassignedAction) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.linking.bug289059Test.Model in project xtext-core by eclipse.
the class ModelImpl method setReference.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public void setReference(Model newReference) {
Model oldReference = reference;
reference = newReference;
if (eNotificationRequired())
eNotify(new ENotificationImpl(this, Notification.SET, Bug289059TestPackage.MODEL__REFERENCE, oldReference, reference));
}
use of org.eclipse.xtext.linking.bug289059Test.Model in project xtext-core by eclipse.
the class Bug289059Test method testModelLinked_01.
@Test
public void testModelLinked_01() throws Exception {
String modelAsText = "model model";
Model model = (Model) getModel(modelAsText);
assertSame(model, model.getReference());
}
use of org.eclipse.xtext.linking.bug289059Test.Model in project xtext-core by eclipse.
the class Bug289059Test method testModelLinked_02.
@Test
public void testModelLinked_02() throws Exception {
String modelAsText = "model enabled model";
Model model = (Model) getModel(modelAsText);
assertSame(model, model.getReference());
}
Aggregations