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