use of org.eclipse.xtext.common.types.xtext.ui.contentAssistTestLanguage.ReferenceHolder in project xtext-eclipse by eclipse.
the class ContentAssistTestLanguageSemanticSequencer 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 == ContentAssistTestLanguagePackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case ContentAssistTestLanguagePackage.GENERATE_DIRECTIVE:
sequence_GenerateDirective(context, (GenerateDirective) semanticObject);
return;
case ContentAssistTestLanguagePackage.IMPORT:
sequence_Import(context, (Import) semanticObject);
return;
case ContentAssistTestLanguagePackage.MODEL:
sequence_Model(context, (Model) semanticObject);
return;
case ContentAssistTestLanguagePackage.REFERENCE_HOLDER:
sequence_ReferenceHolder(context, (ReferenceHolder) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.common.types.xtext.ui.contentAssistTestLanguage.ReferenceHolder in project xtext-eclipse by eclipse.
the class ModelImpl method basicSetReferenceHolder.
/**
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public NotificationChain basicSetReferenceHolder(ReferenceHolder newReferenceHolder, NotificationChain msgs) {
ReferenceHolder oldReferenceHolder = referenceHolder;
referenceHolder = newReferenceHolder;
if (eNotificationRequired()) {
ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, ContentAssistTestLanguagePackage.MODEL__REFERENCE_HOLDER, oldReferenceHolder, newReferenceHolder);
if (msgs == null)
msgs = notification;
else
msgs.add(notification);
}
return msgs;
}
Aggregations