Search in sources :

Example 1 with GeneratorTemplate

use of org.eclipse.vorto.codegen.ui.wizard.generation.templates.GeneratorTemplate in project vorto by eclipse.

the class ProjectCreationTask method createGeneratorProject.

private void createGeneratorProject(IProgressMonitor monitor) {
    EclipseProjectGenerator<IGeneratorProjectContext> generator = new EclipseProjectGenerator<IGeneratorProjectContext>(new LocationWrapper(context.getWorkspaceLocation(), context.getPackageName() + "." + context.getGeneratorName().toLowerCase()));
    generator.pluginNature(new PluginBuildFileTemplate(), new ManifestFileTemplate(), "src", "xtend-gen");
    generator.addNature(MavenNature.MAVEN_NATURE_STRING);
    generator.addTask(new GeneratorTemplate());
    generator.addTask(new PomTemplate());
    generator.addTask(new PluginXMLFileTemplate());
    generator.generate(context, InvocationContext.simpleInvocationContext(), monitor);
}
Also used : MicroServicePomTemplate(org.eclipse.vorto.codegen.ui.wizard.generation.templates.server.MicroServicePomTemplate) PomTemplate(org.eclipse.vorto.codegen.ui.wizard.generation.templates.PomTemplate) IGeneratorProjectContext(org.eclipse.vorto.codegen.ui.context.IGeneratorProjectContext) EclipseProjectGenerator(org.eclipse.vorto.codegen.ui.tasks.EclipseProjectGenerator) LocationWrapper(org.eclipse.vorto.codegen.ui.tasks.LocationWrapper) PluginBuildFileTemplate(org.eclipse.vorto.codegen.ui.wizard.generation.templates.PluginBuildFileTemplate) GeneratorTemplate(org.eclipse.vorto.codegen.ui.wizard.generation.templates.GeneratorTemplate) PluginXMLFileTemplate(org.eclipse.vorto.codegen.ui.wizard.generation.templates.PluginXMLFileTemplate) ManifestFileTemplate(org.eclipse.vorto.codegen.ui.wizard.generation.templates.ManifestFileTemplate)

Aggregations

IGeneratorProjectContext (org.eclipse.vorto.codegen.ui.context.IGeneratorProjectContext)1 EclipseProjectGenerator (org.eclipse.vorto.codegen.ui.tasks.EclipseProjectGenerator)1 LocationWrapper (org.eclipse.vorto.codegen.ui.tasks.LocationWrapper)1 GeneratorTemplate (org.eclipse.vorto.codegen.ui.wizard.generation.templates.GeneratorTemplate)1 ManifestFileTemplate (org.eclipse.vorto.codegen.ui.wizard.generation.templates.ManifestFileTemplate)1 PluginBuildFileTemplate (org.eclipse.vorto.codegen.ui.wizard.generation.templates.PluginBuildFileTemplate)1 PluginXMLFileTemplate (org.eclipse.vorto.codegen.ui.wizard.generation.templates.PluginXMLFileTemplate)1 PomTemplate (org.eclipse.vorto.codegen.ui.wizard.generation.templates.PomTemplate)1 MicroServicePomTemplate (org.eclipse.vorto.codegen.ui.wizard.generation.templates.server.MicroServicePomTemplate)1