use of org.eclipse.xtext.linking.bug313089.Baz in project xtext-core by eclipse.
the class BazImpl method basicSetChild.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetChild(Baz newChild, NotificationChain msgs) {
Baz oldChild = child;
child = newChild;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug313089Package.BAZ__CHILD, oldChild, newChild);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.linking.bug313089.Baz in project xtext-core by eclipse.
the class FooImpl method basicSetBaz.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetBaz(Baz newBaz, NotificationChain msgs) {
Baz oldBaz = baz;
baz = newBaz;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug313089Package.FOO__BAZ, oldBaz, newBaz);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
use of org.eclipse.xtext.linking.bug313089.Baz in project xtext-core by eclipse.
the class Bug313089TestLanguageSemanticSequencer 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 == Bug313089Package.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case Bug313089Package.BAR:
sequence_Bar(context, (Bar) semanticObject);
return;
case Bug313089Package.BAZ:
sequence_Baz(context, (Baz) semanticObject);
return;
case Bug313089Package.FOO:
sequence_Foo(context, (Foo) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations