use of org.eclipse.xtext.ui.tests.refactoring.refactoring.Element in project xtext-eclipse by eclipse.
the class RefactoringTestLanguageSemanticSequencer 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 == RefactoringPackage.eINSTANCE)
switch(semanticObject.eClass().getClassifierID()) {
case RefactoringPackage.ELEMENT:
sequence_Element(context, (Element) semanticObject);
return;
case RefactoringPackage.IMPORT:
sequence_Import(context, (Import) semanticObject);
return;
case RefactoringPackage.MAIN:
sequence_Main(context, (Main) semanticObject);
return;
}
if (errorAcceptor != null)
errorAcceptor.accept(diagnosticProvider.createInvalidContextOrTypeDiagnostic(semanticObject, context));
}
Aggregations