use of org.eclipse.xtext.ui.codetemplates.templates.Literal in project xtext-eclipse by eclipse.
the class SingleCodetemplateSemanticSequencer 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 == TemplatesPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case TemplatesPackage.CODETEMPLATE:
sequence_Codetemplate(context, (Codetemplate) semanticObject);
return;
case TemplatesPackage.CODETEMPLATES:
sequence_Codetemplates(context, (Codetemplates) semanticObject);
return;
case TemplatesPackage.DOLLAR:
sequence_Dollar(context, (Dollar) semanticObject);
return;
case TemplatesPackage.LITERAL:
sequence_Literal(context, (Literal) semanticObject);
return;
case TemplatesPackage.TEMPLATE_BODY:
sequence_TemplateBody(context, (TemplateBody) semanticObject);
return;
case TemplatesPackage.VARIABLE:
sequence_Variable(context, (Variable) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
use of org.eclipse.xtext.ui.codetemplates.templates.Literal in project xtext-eclipse by eclipse.
the class CodetemplatesSemanticSequencer 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 == TemplatesPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case TemplatesPackage.CODETEMPLATE:
sequence_Codetemplate(context, (Codetemplate) semanticObject);
return;
case TemplatesPackage.CODETEMPLATES:
sequence_Codetemplates(context, (Codetemplates) semanticObject);
return;
case TemplatesPackage.DOLLAR:
sequence_Dollar(context, (Dollar) semanticObject);
return;
case TemplatesPackage.LITERAL:
sequence_Literal(context, (Literal) semanticObject);
return;
case TemplatesPackage.TEMPLATE_BODY:
sequence_TemplateBody(context, (TemplateBody) semanticObject);
return;
case TemplatesPackage.VARIABLE:
sequence_Variable(context, (Variable) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations