use of org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel 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));
}
use of org.eclipse.xtend.typesystem.emf.EmfRegistryMetaModel in project xtext-core by eclipse.
the class XtendXtext2EcorePostProcessor method getExecutionContext.
/**
* @param metamodel
* the metamodel to augment
* @return the executionContext used to perform the xtend processing
*/
protected ExecutionContext getExecutionContext(GeneratedMetamodel metamodel) {
if (executionContext == null) {
ExecutionContextImpl executionContext = new ExecutionContextImpl();
executionContext.registerMetaModel(new EmfRegistryMetaModel());
executionContext.registerMetaModel(new JavaBeansMetaModel());
this.executionContext = executionContext;
}
return executionContext;
}
Aggregations