Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » xtext code-generator
xtext code-generator [message #908400] Wed, 05 September 2012 10:12 Go to next message
Vinod Ravi is currently offline Vinod RaviFriend
Messages: 12
Registered: August 2012
Junior Member
Hello,

I would like to know whether is there a way to check the code generator(Xtend)for the given DSL instance(ie., model) without running it in a new eclipse instance?
Because each and every time when I make changes with the Xtend file(to generate an output which is somewhat template based) I have to run it as a eclipse application to check the generated-output, which sometimes fails if there exists some errors in the generator.
Thanks for any help provided.
Re: xtext code-generator [message #908412 is a reply to message #908400] Wed, 05 September 2012 10:39 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13359
Registered: July 2009
Senior Member
Hi you can configure the generator fragment in the language workflow
to generate a workflow or java main class for the generator

--
Need training, onsite consulting or any other kind of help for Xtext?
Go visit http://xtext.itemis.com or send a mail to xtext at itemis dot de


Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: xtext code-generator [message #908429 is a reply to message #908412] Wed, 05 September 2012 11:15 Go to previous messageGo to next message
Sebastian Zarnekow is currently offline Sebastian ZarnekowFriend
Messages: 3107
Registered: July 2009
Senior Member
Am 05.09.12 12:39, schrieb Christian Dietrich:
> Hi you can configure the generator fragment in the language workflow to
> generate a workflow or java main class for the generator
>

Or you could write unit tests (strongly recommended).

Regards,
Sebastian
--
Looking for professional support for Xtext, Xtend or Eclipse Modeling?
Go visit: http://xtext.itemis.com
Re: xtext code-generator [message #908575 is a reply to message #908400] Wed, 05 September 2012 15:37 Go to previous message
Karsten Thoms is currently offline Karsten ThomsFriend
Messages: 715
Registered: July 2009
Location: Dortmund, Germany
Senior Member

You could write also a MWE2 workflow (which is generated by the generator fragment) and execute this from DEV workspace.

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Previous Topic:xtext update sites unavailable?
Next Topic:What to use for automated xtext builds & tests?
Goto Forum:
  


Current Time: Sat Feb 22 07:56:55 GMT 2020

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

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

Back to the top