Search in sources :

Example 1 with Element

use of org.eclipse.xtext.linking.ignoreCaseLinkingTest.Element in project xtext-core by eclipse.

the class ElementImpl method setReference.

/**
 * <!-- begin-user-doc -->
 * <!-- end-user-doc -->
 * @generated
 */
public void setReference(Element newReference) {
    Element oldReference = reference;
    reference = newReference;
    if (eNotificationRequired())
        eNotify(new ENotificationImpl(this, Notification.SET, IgnoreCaseLinkingTestPackage.ELEMENT__REFERENCE, oldReference, reference));
}
Also used : ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl) Element(org.eclipse.xtext.linking.ignoreCaseLinkingTest.Element)

Example 2 with Element

use of org.eclipse.xtext.linking.ignoreCaseLinkingTest.Element in project xtext-core by eclipse.

the class AbstractIgnoreCaseLinkingTestLanguageSemanticSequencer 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 == IgnoreCaseLinkingTestPackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case IgnoreCaseLinkingTestPackage.ELEMENT:
                sequence_Element(context, (Element) semanticObject);
                return;
            case IgnoreCaseLinkingTestPackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Element(org.eclipse.xtext.linking.ignoreCaseLinkingTest.Element) Model(org.eclipse.xtext.linking.ignoreCaseLinkingTest.Model) Parameter(org.eclipse.xtext.Parameter) EPackage(org.eclipse.emf.ecore.EPackage)

Example 3 with Element

use of org.eclipse.xtext.linking.ignoreCaseLinkingTest.Element in project xtext-core by eclipse.

the class IgnoreCaseNamespacesTestLanguageSemanticSequencer 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 == IgnoreCaseLinkingTestPackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case IgnoreCaseLinkingTestPackage.ELEMENT:
                sequence_Element(context, (Element) semanticObject);
                return;
        }
    else if (epackage == IgnoreCaseNamespacesTestPackage.eINSTANCE)
        switch(semanticObject.eClass().getClassifierID()) {
            case IgnoreCaseNamespacesTestPackage.IMPORT:
                sequence_Import(context, (Import) semanticObject);
                return;
            case IgnoreCaseNamespacesTestPackage.MODEL:
                sequence_Model(context, (Model) semanticObject);
                return;
        }
    if (errorAcceptor != null)
        errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Also used : ParserRule(org.eclipse.xtext.ParserRule) Action(org.eclipse.xtext.Action) Element(org.eclipse.xtext.linking.ignoreCaseLinkingTest.Element) Parameter(org.eclipse.xtext.Parameter) EPackage(org.eclipse.emf.ecore.EPackage)

Aggregations

Element (org.eclipse.xtext.linking.ignoreCaseLinkingTest.Element)3 EPackage (org.eclipse.emf.ecore.EPackage)2 Action (org.eclipse.xtext.Action)2 Parameter (org.eclipse.xtext.Parameter)2 ParserRule (org.eclipse.xtext.ParserRule)2 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)1 Model (org.eclipse.xtext.linking.ignoreCaseLinkingTest.Model)1