Skip to content

Commit

Permalink
Fixed generator wizard template to use latest API as well as latest v…
Browse files Browse the repository at this point in the history
…orto compliant xtext version
  • Loading branch information
aedelmann committed Jun 29, 2017
1 parent 1efcc7c commit 93d74fb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,11 @@ class GeneratorTemplate implements IFileTemplate<IGeneratorProjectContext> {
import org.eclipse.vorto.codegen.api.InvocationContext;
import org.eclipse.vorto.codegen.api.IVortoCodeGenerator
import org.eclipse.vorto.core.api.model.informationmodel.InformationModel
import org.eclipse.vorto.codegen.api.IVortoCodeGenProgressMonitor
class «context.generatorName» implements IVortoCodeGenerator {
override generate(InformationModel infomodel, InvocationContext context) {
override generate(InformationModel infomodel, InvocationContext context, IVortoCodeGenProgressMonitor monitor) {
var output = new GenerationResultZip(infomodel,getServiceKey());
var generator = new ChainedCodeGeneratorTask<InformationModel>();
generator.addTask(new GeneratorTaskFromFileTemplate(new SampleTemplate()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class PomTemplate implements IFileTemplate<IGeneratorProjectContext> {
<properties>
<tycho-version>0.20.0</tycho-version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<xtext.version>2.7.2</xtext.version>
<xtext.version>2.9.0</xtext.version>
<jdk.version>1.7</jdk.version>
</properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class MicroServicePomTemplate implements IFileTemplate<IGeneratorProjectContext>
<packaging>jar</packaging>
<properties>
<vorto.version>0.4.0-SNAPSHOT</vorto.version>
<vorto.version>0.10.0.M1</vorto.version>
</properties>
<dependencies>
Expand Down

0 comments on commit 93d74fb

Please sign in to comment.