|
Re: Running mwe2 after saving DSL [message #685536 is a reply to message #685483] |
Fri, 17 June 2011 17:52 |
Alexander Nittka Messages: 1193 Registered: July 2009 |
Senior Member |
|
|
Hi,
the normal mwe2 files for generation are not intended to be run from within an application. The reader component usually used calls the *standalone* setup of the language which modifies a global registry (possibly messing it up in the running eclipse). The way to go is the builder participant. The domain model example should contain a generator package in the ui-plugin with some sample code. There generation is triggered by the builder, reacting to changes in a resource.
If you really want to use workflow files, you have to programmatically fill the model slot (it is a parameter when instantiating/initialising the workflow runner. You could either react to model changes using the said builder participant infrastructure (recommended) or bind your own editor implementation, overriding the save command.
Alex
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext@itemis.de
|
|
|
Powered by
FUDForum. Page generated in 0.01482 seconds