Skip to main content


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 Moreno is currently offline Antonio MorenoFriend
Messages: 16
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: 14661
Registered: July 2009
Senior Member
Hi Since some more whiles ago the Generator is located in the Same Project as the grammar by default

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
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 Moreno is currently offline Antonio MorenoFriend
Messages: 16
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 264 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: 14661
Registered: July 2009
Senior Member
Hi how does you workflow Look like? Did you deactvate builderintegration and generatorfragment

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Create "generator code" [message #1061204 is a reply to message #1061172] Thu, 30 May 2013 13:59 Go to previous message
Antonio Moreno is currently offline Antonio MorenoFriend
Messages: 16
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: Thu Mar 28 19:03:22 GMT 2024

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

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

Back to the top