Search in sources :

Example 1 with Baz

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;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Baz(org.eclipse.xtext.linking.bug313089.Baz)

Example 2 with Baz

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;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Baz(org.eclipse.xtext.linking.bug313089.Baz)

Example 3 with Baz

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));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Bar(org.eclipse.xtext.linking.bug313089.Bar) Foo(org.eclipse.xtext.linking.bug313089.Foo) Parameter(org.eclipse.xtext.Parameter) Baz(org.eclipse.xtext.linking.bug313089.Baz) EPackage(org.eclipse.emf.ecore.EPackage)

Aggregations

Baz (org.eclipse.xtext.linking.bug313089.Baz)3 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2 EPackage (org.eclipse.emf.ecore.EPackage)1 Action (org.eclipse.xtext.Action)1 Parameter (org.eclipse.xtext.Parameter)1 ParserRule (org.eclipse.xtext.ParserRule)1 Bar (org.eclipse.xtext.linking.bug313089.Bar)1 Foo (org.eclipse.xtext.linking.bug313089.Foo)1