Search in sources :

Example 1 with TransformationDiagnosticsProducer

use of org.eclipse.xtext.xtext.ecoreInference.TransformationDiagnosticsProducer in project xtext-core by eclipse.

the class XtextLinker method createTransformer.

protected Xtext2EcoreTransformer createTransformer(Grammar grammar, IDiagnosticConsumer consumer) {
    final Xtext2EcoreTransformer transformer = new Xtext2EcoreTransformer(grammar);
    transformer.setErrorAcceptor(new TransformationDiagnosticsProducer(consumer));
    transformer.setPostProcessor(postProcessor);
    return transformer;
}
Also used : TransformationDiagnosticsProducer(org.eclipse.xtext.xtext.ecoreInference.TransformationDiagnosticsProducer) Xtext2EcoreTransformer(org.eclipse.xtext.xtext.ecoreInference.Xtext2EcoreTransformer)

Aggregations

TransformationDiagnosticsProducer (org.eclipse.xtext.xtext.ecoreInference.TransformationDiagnosticsProducer)1 Xtext2EcoreTransformer (org.eclipse.xtext.xtext.ecoreInference.Xtext2EcoreTransformer)1