Search in sources :

Example 1 with JetConfig

use of com.centurylink.mdw.plugin.codegen.JetConfig in project mdw-designer by CenturyLinkCloud.

the class ServerConfigurator method getJet.

protected JetAccess getJet(String jetFile, IProject targetProject, String targetPath) {
    JetConfig jetConfig = new JetConfig();
    jetConfig.setModel(getServerSettings().getProject());
    jetConfig.setSettings(MdwPlugin.getSettings());
    jetConfig.setPluginId(MdwPlugin.getPluginId());
    jetConfig.setTargetFolder(targetProject.getName());
    jetConfig.setTargetFile(targetPath);
    jetConfig.setTemplateRelativeUri("templates/" + jetFile);
    return new JetAccess(jetConfig);
}
Also used : JetAccess(com.centurylink.mdw.plugin.codegen.JetAccess) JetConfig(com.centurylink.mdw.plugin.codegen.JetConfig)

Example 2 with JetConfig

use of com.centurylink.mdw.plugin.codegen.JetConfig in project mdw-designer by CenturyLinkCloud.

the class ProjectUpdater method getJet.

protected JetAccess getJet(String jetFile, IProject targetProject, String targetPath) {
    JetConfig jetConfig = new JetConfig();
    jetConfig.setModel(workflowProject);
    jetConfig.setSettings(MdwPlugin.getSettings());
    jetConfig.setPluginId(MdwPlugin.getPluginId());
    jetConfig.setTargetFolder(targetProject.getName());
    jetConfig.setTargetFile(targetPath);
    jetConfig.setTemplateRelativeUri("templates/" + jetFile);
    return new JetAccess(jetConfig);
}
Also used : JetAccess(com.centurylink.mdw.plugin.codegen.JetAccess) JetConfig(com.centurylink.mdw.plugin.codegen.JetConfig)

Example 3 with JetConfig

use of com.centurylink.mdw.plugin.codegen.JetConfig in project mdw-designer by CenturyLinkCloud.

the class ProjectConfigurator method getJet.

protected JetAccess getJet(String jetFile, IProject targetProject, String targetPath) {
    JetConfig jetConfig = new JetConfig();
    jetConfig.setModel(project);
    jetConfig.setSettings(MdwPlugin.getSettings());
    jetConfig.setPluginId(MdwPlugin.getPluginId());
    jetConfig.setTargetFolder(targetProject.getName());
    jetConfig.setTargetFile(targetPath);
    jetConfig.setTemplateRelativeUri("templates/" + jetFile);
    return new JetAccess(jetConfig);
}
Also used : JetAccess(com.centurylink.mdw.plugin.codegen.JetAccess) JetConfig(com.centurylink.mdw.plugin.codegen.JetConfig)

Example 4 with JetConfig

use of com.centurylink.mdw.plugin.codegen.JetConfig in project mdw-designer by CenturyLinkCloud.

the class ProjectInflator method getJet.

private JetAccess getJet(String jetFile, IProject targetProject, String targetPath, IPackageFragment pkg) {
    // prepare config for creating files
    JetConfig jetConfig = new JetConfig();
    jetConfig.setModel(workflowProject);
    jetConfig.setSettings(mdwSettings);
    jetConfig.setPluginId(MdwPlugin.getPluginId());
    if (pkg == null)
        jetConfig.setPackageName("");
    else
        jetConfig.setPackageName(pkg.getElementName());
    jetConfig.setTargetFolder(targetProject.getName());
    jetConfig.setTargetFile(targetPath);
    jetConfig.setTemplateRelativeUri("templates/" + jetFile);
    return new JetAccess(jetConfig);
}
Also used : JetAccess(com.centurylink.mdw.plugin.codegen.JetAccess) JetConfig(com.centurylink.mdw.plugin.codegen.JetConfig)

Aggregations

JetAccess (com.centurylink.mdw.plugin.codegen.JetAccess)4 JetConfig (com.centurylink.mdw.plugin.codegen.JetConfig)4