|
|
|
|
|
|
|
Re: [Question] Xtext 2.0 / Xtend2 Generator Development [message #713230 is a reply to message #710951] |
Mon, 08 August 2011 04:50  |
Eclipse User |
|
|
|
There was no such Project Wizard in my Xtext 2.0 example project. I had to enable the lines
/org.xtext.example.mydsl/src/org/xtext/example/mydsl/GenerateMyDsl.mwe2
// project wizard (optional)
fragment = projectWizard.SimpleProjectWizardFragment {
generatorProjectName = "${projectName}"
modelFileExtension = file.extensions
}
regenerate the Xtext artifacts and then, merge
/org.xtext.example.mydsl.ui/plugin.xml_gen into /org.xtext.example.mydsl.ui/plugin.xml.
Now, in the runtime Eclipse, the wizard is there and creates a sample mydsl project
with a file Generator.mwe, which has to be fixed to
component = @org.xtext.example.mydsl.generator.MyDslGeneratorMWE auto-inject {}
The intention of Xtext seems to be that, after a model change, the generator runs implicitely with the Build process.
But this way, template changes in the generator are not reflected.
I have to disable the "Build automatically" in the model project and run the Generator.mwe workflow explicitely to see my latest template changes in effect.
Best regards and thanks a lot for your help,
Nikolai
|
|
|
Powered by
FUDForum. Page generated in 0.10989 seconds