Search in sources :

Example 1 with CompilerX

use of com.avaloq.tools.ddk.xtext.expression.generator.CompilerX in project dsl-devkit by dsldevkit.

the class CodeGenerationXTest method beforeAllTests.

@Override
protected void beforeAllTests() {
    super.beforeAllTests();
    final ExecutionContextImpl executionContext = new ExecutionContextImpl();
    executionContext.registerMetaModel(new JavaBeansMetaModel());
    executionContext.registerMetaModel(new EmfRegistryMetaModel());
    final CompilationContext context = new CompilationContext(executionContext, new GenModelUtilX());
    getTestInformation().putTestObject(CompilerX.class, new CompilerX(context));
}
Also used : GenModelUtilX(com.avaloq.tools.ddk.xtext.expression.generator.GenModelUtilX) CompilerX(com.avaloq.tools.ddk.xtext.expression.generator.CompilerX) ExecutionContextImpl(org.eclipse.xtend.expression.ExecutionContextImpl) EmfRegistryMetaModel(org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel) CompilationContext(com.avaloq.tools.ddk.xtext.expression.generator.CompilationContext) JavaBeansMetaModel(org.eclipse.xtend.type.impl.java.JavaBeansMetaModel)

Aggregations

CompilationContext (com.avaloq.tools.ddk.xtext.expression.generator.CompilationContext)1 CompilerX (com.avaloq.tools.ddk.xtext.expression.generator.CompilerX)1 GenModelUtilX (com.avaloq.tools.ddk.xtext.expression.generator.GenModelUtilX)1 ExecutionContextImpl (org.eclipse.xtend.expression.ExecutionContextImpl)1 JavaBeansMetaModel (org.eclipse.xtend.type.impl.java.JavaBeansMetaModel)1 EmfRegistryMetaModel (org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel)1