Search in sources :

Example 1 with UnassignedAction

use of org.eclipse.xtext.linking.bug289059Test.UnassignedAction 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));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) UnassignedAction(org.eclipse.xtext.linking.bug289059Test.UnassignedAction) Model(org.eclipse.xtext.linking.bug289059Test.Model) Parameter(org.eclipse.xtext.Parameter) UnassignedAction(org.eclipse.xtext.linking.bug289059Test.UnassignedAction) EPackage(org.eclipse.emf.ecore.EPackage)

Example 2 with UnassignedAction

use of org.eclipse.xtext.linking.bug289059Test.UnassignedAction in project xtext-core by eclipse.

the class ModelImpl method basicSetEnabled.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetEnabled(UnassignedAction newEnabled, NotificationChain msgs) {
    UnassignedAction oldEnabled = enabled;
    enabled = newEnabled;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, Bug289059TestPackage.MODEL__ENABLED, oldEnabled, newEnabled);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) UnassignedAction(org.eclipse.xtext.linking.bug289059Test.UnassignedAction)

Aggregations

UnassignedAction (org.eclipse.xtext.linking.bug289059Test.UnassignedAction)2 EPackage (org.eclipse.emf.ecore.EPackage)1 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 Action (org.eclipse.xtext.Action)1 Parameter (org.eclipse.xtext.Parameter)1 ParserRule (org.eclipse.xtext.ParserRule)1 Model (org.eclipse.xtext.linking.bug289059Test.Model)1