Search in sources :

Example 1 with MandatoryManyTransition

use of org.eclipse.xtext.serializer.syntacticsequencertest.MandatoryManyTransition in project xtext-core by eclipse.

the class ModelImpl method basicSetX10.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public NotificationChain basicSetX10(MandatoryManyTransition newX10, NotificationChain msgs) {
    MandatoryManyTransition oldX10 = x10;
    x10 = newX10;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SyntacticsequencertestPackage.MODEL__X10, oldX10, newX10);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : MandatoryManyTransition(org.eclipse.xtext.serializer.syntacticsequencertest.MandatoryManyTransition) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 2 with MandatoryManyTransition

use of org.eclipse.xtext.serializer.syntacticsequencertest.MandatoryManyTransition in project xtext-core by eclipse.

the class AbstractSyntacticSequencerTestLanguageSemanticSequencer 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 == SyntacticsequencertestPackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case SyntacticsequencertestPackage.ACTION_ONLY:
                sequence_ActionOnly(context, (ActionOnly) semanticObject);
                return;
            case SyntacticsequencertestPackage.ADD0:
                sequence_Addition0(context, (Add0) semanticObject);
                return;
            case SyntacticsequencertestPackage.ADD1:
                sequence_Addition1(context, (Add1) semanticObject);
                return;
            case SyntacticsequencertestPackage.ADD2:
                sequence_Addition2(context, (Add2) semanticObject);
                return;
            case SyntacticsequencertestPackage.ALTERNATIVE_TRANSITION:
                sequence_AlternativeTransition(context, (AlternativeTransition) semanticObject);
                return;
            case SyntacticsequencertestPackage.BOOLEAN_ALTERNATIVE:
                sequence_BooleanAlternative(context, (BooleanAlternative) semanticObject);
                return;
            case SyntacticsequencertestPackage.BOOLEAN_ALTERNATIVE_LITERAL:
                sequence_BooleanAlternativeLiteral(context, (BooleanAlternativeLiteral) semanticObject);
                return;
            case SyntacticsequencertestPackage.BOOLEAN_VALUES:
                sequence_BooleanValues(context, (BooleanValues) semanticObject);
                return;
            case SyntacticsequencertestPackage.BUG398890:
                sequence_Bug398890(context, (Bug398890) semanticObject);
                return;
            case SyntacticsequencertestPackage.FRAGMENT_CALLER_TYPE:
                sequence_Fragment1_FragmentCaller(context, (FragmentCallerType) semanticObject);
                return;
            case SyntacticsequencertestPackage.LONG_ALTERNATIVE:
                sequence_LongAlternative(context, (LongAlternative) semanticObject);
                return;
            case SyntacticsequencertestPackage.MANDATORY_KEYWORDS:
                sequence_MandatoryKeywords(context, (MandatoryKeywords) semanticObject);
                return;
            case SyntacticsequencertestPackage.MANDATORY_MANY_TRANSITION:
                sequence_MandatoryManyTransition(context, (MandatoryManyTransition) semanticObject);
                return;
            case SyntacticsequencertestPackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
            case SyntacticsequencertestPackage.MULT2:
                sequence_Multiplication2(context, (Mult2) semanticObject);
                return;
            case SyntacticsequencertestPackage.OPTIONAL_MANY_TRANSITION:
                sequence_OptionalManyTransition(context, (OptionalManyTransition) semanticObject);
                return;
            case SyntacticsequencertestPackage.OPTIONAL_SINGLE_TRANSITION:
                sequence_OptionalSingleTransition(context, (OptionalSingleTransition) semanticObject);
                return;
            case SyntacticsequencertestPackage.SINGLE_CROSS_REFERENCE:
                sequence_SingleCrossReference(context, (SingleCrossReference) semanticObject);
                return;
            case SyntacticsequencertestPackage.UNASSIGNED_DATATYPE:
                sequence_UnassignedDatatype(context, (UnassignedDatatype) semanticObject);
                return;
            case SyntacticsequencertestPackage.VAL0:
                sequence_Prim0(context, (Val0) semanticObject);
                return;
            case SyntacticsequencertestPackage.VAL1:
                sequence_Prim1(context, (Val1) semanticObject);
                return;
            case SyntacticsequencertestPackage.VAL2:
                sequence_Prim2(context, (Val2) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : OptionalSingleTransition(org.eclipse.xtext.serializer.syntacticsequencertest.OptionalSingleTransition) ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) BooleanAlternativeLiteral(org.eclipse.xtext.serializer.syntacticsequencertest.BooleanAlternativeLiteral) Add2(org.eclipse.xtext.serializer.syntacticsequencertest.Add2) EPackage(org.eclipse.emf.ecore.EPackage) Add1(org.eclipse.xtext.serializer.syntacticsequencertest.Add1) FragmentCallerType(org.eclipse.xtext.serializer.syntacticsequencertest.FragmentCallerType) Add0(org.eclipse.xtext.serializer.syntacticsequencertest.Add0) Mult2(org.eclipse.xtext.serializer.syntacticsequencertest.Mult2) ActionOnly(org.eclipse.xtext.serializer.syntacticsequencertest.ActionOnly) SingleCrossReference(org.eclipse.xtext.serializer.syntacticsequencertest.SingleCrossReference) Bug398890(org.eclipse.xtext.serializer.syntacticsequencertest.Bug398890) OptionalManyTransition(org.eclipse.xtext.serializer.syntacticsequencertest.OptionalManyTransition) Val0(org.eclipse.xtext.serializer.syntacticsequencertest.Val0) MandatoryKeywords(org.eclipse.xtext.serializer.syntacticsequencertest.MandatoryKeywords) UnassignedDatatype(org.eclipse.xtext.serializer.syntacticsequencertest.UnassignedDatatype) LongAlternative(org.eclipse.xtext.serializer.syntacticsequencertest.LongAlternative) MandatoryManyTransition(org.eclipse.xtext.serializer.syntacticsequencertest.MandatoryManyTransition) BooleanValues(org.eclipse.xtext.serializer.syntacticsequencertest.BooleanValues) BooleanAlternative(org.eclipse.xtext.serializer.syntacticsequencertest.BooleanAlternative) Model(org.eclipse.xtext.serializer.syntacticsequencertest.Model) Val1(org.eclipse.xtext.serializer.syntacticsequencertest.Val1) Parameter(org.eclipse.xtext.Parameter) AlternativeTransition(org.eclipse.xtext.serializer.syntacticsequencertest.AlternativeTransition) Val2(org.eclipse.xtext.serializer.syntacticsequencertest.Val2)

Aggregations

MandatoryManyTransition (org.eclipse.xtext.serializer.syntacticsequencertest.MandatoryManyTransition)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 ActionOnly (org.eclipse.xtext.serializer.syntacticsequencertest.ActionOnly)1 Add0 (org.eclipse.xtext.serializer.syntacticsequencertest.Add0)1 Add1 (org.eclipse.xtext.serializer.syntacticsequencertest.Add1)1 Add2 (org.eclipse.xtext.serializer.syntacticsequencertest.Add2)1 AlternativeTransition (org.eclipse.xtext.serializer.syntacticsequencertest.AlternativeTransition)1 BooleanAlternative (org.eclipse.xtext.serializer.syntacticsequencertest.BooleanAlternative)1 BooleanAlternativeLiteral (org.eclipse.xtext.serializer.syntacticsequencertest.BooleanAlternativeLiteral)1 BooleanValues (org.eclipse.xtext.serializer.syntacticsequencertest.BooleanValues)1 Bug398890 (org.eclipse.xtext.serializer.syntacticsequencertest.Bug398890)1 FragmentCallerType (org.eclipse.xtext.serializer.syntacticsequencertest.FragmentCallerType)1 LongAlternative (org.eclipse.xtext.serializer.syntacticsequencertest.LongAlternative)1 MandatoryKeywords (org.eclipse.xtext.serializer.syntacticsequencertest.MandatoryKeywords)1 Model (org.eclipse.xtext.serializer.syntacticsequencertest.Model)1 Mult2 (org.eclipse.xtext.serializer.syntacticsequencertest.Mult2)1