Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Running mwe2 after saving DSL
Running mwe2 after saving DSL [message #685483] Fri, 17 June 2011 15:36 Go to next message
Dan Becker is currently offline Dan BeckerFriend
Messages: 5
Registered: July 2009
Junior Member
Hello all,

Our team is using a DSL to construct web applications that run web flows. Currently we use a Workflow (mwe2) file to run our templates, pretty up our Java files, and export them to the web application server. Right now we are in a pretty tedious development cycle of: edit DSL, save, run MWE2 Workflow.

Is there a way in Eclipse to associate the MWE2 Workflow task with the save of the DSL to automatically run the MWE2 Workflow?

Thanks, Dan
Re: Running mwe2 after saving DSL [message #685536 is a reply to message #685483] Fri, 17 June 2011 17:52 Go to previous message
Alexander Nittka is currently offline Alexander NittkaFriend
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
Previous Topic:Can't ignore WS in rule
Next Topic:How can I trigger Xtext validation?
Goto Forum:
  


Current Time: Thu Apr 18 08:57:19 GMT 2024

Powered by FUDForum. Page generated in 0.01482 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top