Examples of XpandExecutionContextImpl


Examples of org.eclipse.xpand2.XpandExecutionContextImpl

    pr.setSrcPathes(prSrcPaths);
    pr.setDefaultExcludes(true);
    pr.setIgnoreList("*.swp");

    // Execution context
    XpandExecutionContextImpl execCtx = new XpandExecutionContextImpl(
        output, pr, globalVarsMap, null, null);
    execCtx.registerMetaModel(new org.eclipse.xtend.type.impl.java.JavaBeansMetaModel());

    // Generate
    XpandFacade facade = XpandFacade.create(execCtx);
    String templatePath = "templates::corbasim::Main::main";
    facade.evaluate(templatePath, model);
View Full Code Here

Examples of org.eclipse.xpand2.XpandExecutionContextImpl

    Output output = new OutputImpl();
    Outlet outlet = new Outlet(RESULT_DIR);
    output.addOutlet(outlet);

    ResourceLoaderFactory.setCurrentThreadResourceLoader(new ResourceLoaderImpl(getClass().getClassLoader()));
    xpandCtx = new XpandExecutionContextImpl(output, null);
    Map<String, Variable> variables = xpandCtx.getGlobalVariables();
    Variable srcDir = new Variable("srcDir", SRC_DIR);
    variables.put("srcDir", srcDir);
    Variable dir = new Variable("dir", RESULT_DIR);
    variables.put("dir", dir);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.