问题
I'm developing a DSL using xText (version 2.10.0) and i would like to add also a code generator.
When running the plug-ins, as I understood, the code generator should be invoked automatically upon a change in a file. This is not happening.
Using a debugger I've noticed that the doGenerate function is not invoked.
What can I do so the doGenerate function will be invoked automatically?
Thanks.
回答1:
Your file needs the right file extension (case sensitive) the project needs xtext nature and build automatically needs to be enabled. Then the generator will be called upon save of error free models
来源:https://stackoverflow.com/questions/39625211/xtext-dogenerate-method-is-not-called