Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Create "generator code"
Create "generator code" [message #1061151] Thu, 30 May 2013 09:04 Go to next message
Antonio M. Moreno is currently offline Antonio M. MorenoFriend
Messages: 14
Registered: November 2012
Junior Member
Hi all,

Maybe this question has been answered in any post, but in these case I can't find it. In all tutorials that I follow, when they explain the section about "Generate code", they assume that in the New Project wizard I check something like "generator..." but I can't found it, and neither I can't found any like these when the projects are created.

I have installed Xpand also. But the problem has not been solved.

My Xtext version is 2.3.1. I suppose the tutorials are maybe outdate, I don't know.

Thank you in advance,
Antonio
Re: Create "generator code" [message #1061163 is a reply to message #1061151] Thu, 30 May 2013 10:24 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 8990
Registered: July 2009
Senior Member
Hi Since some more whiles ago the Generator is located in the Same Project as the grammar by default

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Create "generator code" [message #1061170 is a reply to message #1061163] Thu, 30 May 2013 11:23 Go to previous messageGo to next message
Antonio M. Moreno is currently offline Antonio M. MorenoFriend
Messages: 14
Registered: November 2012
Junior Member
Christian Dietrich wrote on Thu, 30 May 2013 06:24
Hi Since some more whiles ago the Generator is located in the Same Project as the grammar by default


Thank you so much, but I can't find it in the generated projects.

I attach a screencast to show you my project. It has not the *.generator package like, for example, "fowlerdsl example". I have this problem since two days ago.
index.php/fa/15094/0/

Thank you in advance,
Antonio
  • Attachment: Captura.PNG
    (Size: 19.65KB, Downloaded 143 times)
Re: Create "generator code" [message #1061172 is a reply to message #1061170] Thu, 30 May 2013 11:28 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 8990
Registered: July 2009
Senior Member
Hi how does you workflow Look like? Did you deactvate builderintegration and generatorfragment

Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @chrdietrich
Blog : christiandietrich.wordpress.com
Re: Create "generator code" [message #1061204 is a reply to message #1061172] Thu, 30 May 2013 13:59 Go to previous message
Antonio M. Moreno is currently offline Antonio M. MorenoFriend
Messages: 14
Registered: November 2012
Junior Member
Thanks!! Looking the differences between FowlerDSL example and my MWE's code I found that the next fragment was not. I added it and now I have the package *.generator.
fragment = generator.GeneratorFragment {
                generateMwe = true
                generateJavaMain = true
            }


Thank you!
Antonio
Previous Topic:JvmModelInferrer: multiple input files
Next Topic:Dynamic Template Variable Resolvers
Goto Forum:
  


Current Time: Tue May 24 10:16:59 GMT 2016

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

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