Search code examples
xtext

Xtext: Customize how Generator is called


I would like to change the way the Generator is called in my project. As default it is called when the model is safed, but I would need it to be called when enter is hit for example. Can anyone explane where and how to do this? Thank you very much!


Solution

  • By default, the generator is called by the build. If you want to call it manually, you need to do that yourself. You may use an article I wrote about this as a starting point.