Examples of addOutlet()


Examples of org.eclipse.xpand2.Generator.addOutlet()

         */
        Generator databaseGen = new Generator();
        databaseGen.setExpand(EXPAND_DATABASE);
        databaseGen.setFileEncoding(config.getFileEncoding());
        databaseGen.addMetaModel(emfMetaModel);
        databaseGen.addOutlet(javaOutlet);
        databaseGen.setPrDefaultExcludes(true);
        databaseGen.setPrSrcPaths(config.getGenPath());

        /*
         * Create Content Provider Generator
View Full Code Here

Examples of org.eclipse.xpand2.Generator.addOutlet()

         */
        Generator contentProviderGen = new Generator();
        contentProviderGen.setExpand(EXPAND_CONTENT_PROVIDER);
        contentProviderGen.setFileEncoding(config.getFileEncoding());
        contentProviderGen.addMetaModel(emfMetaModel);
        contentProviderGen.addOutlet(javaOutlet);

        /*
         * Create Model Generator
         */
        Generator modelGen = new Generator();
View Full Code Here

Examples of org.eclipse.xpand2.Generator.addOutlet()

         */
        Generator modelGen = new Generator();
        modelGen.setExpand(EXPAND_MODEL);
        modelGen.setFileEncoding(config.getFileEncoding());
        modelGen.addMetaModel(emfMetaModel);
        modelGen.addOutlet(javaOutlet);

        /*
         * Create Code Snippet Generator
         */
        Generator snippetGen = new Generator();
View Full Code Here

Examples of org.eclipse.xpand2.Generator.addOutlet()

         */
        Generator snippetGen = new Generator();
        snippetGen.setExpand(EXPAND_CODE_SNIPPET);
        snippetGen.setFileEncoding(config.getFileEncoding());
        snippetGen.addMetaModel(emfMetaModel);
        snippetGen.addOutlet(propertiesOutlet);

        /*
         * Execute Reader and Generators
         */
        reader.invoke(ctx, monitor, issues);
View Full Code Here

Examples of org.eclipse.xpand2.output.Output.addOutlet()

    this.pTest = new ParserTest();
    this.pTest.setUp();

    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);
View Full Code Here

Examples of org.eclipse.xpand2.output.OutputImpl.addOutlet()

    OutputImpl output = new OutputImpl();
    Outlet outlet = new Outlet("model");
    outlet.setOverwrite(true);
    // outlet.addPostprocessor(new CppBeautifier());
    outlet.setPath(targetDir);
    output.addOutlet(outlet);

    // Protected regions
    ProtectedRegionResolverImpl pr = new ProtectedRegionResolverImpl();
    pr.setSrcPathes(prSrcPaths);
    pr.setDefaultExcludes(true);
View Full Code Here

Examples of org.eclipse.xpand2.output.OutputImpl.addOutlet()

    this.pTest = new ParserTest();
    this.pTest.setUp();

    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);
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.