Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Difference between JVMInferrer and Generator(New versions of Xtext does not create a default generator automatically)
Difference between JVMInferrer and Generator [message #1041952] Mon, 15 April 2013 20:18 Go to next message
Leandro Marques is currently offline Leandro MarquesFriend
Messages: 11
Registered: July 2009
Junior Member
Hello everyone,

I use to work with a previous version of Xtext which did not work with JvmModelInferrer. For nor on I am using Xtext 2.4 and when I execute the "generate Xtext artifacts", no generator class is created anymore. Are we supposed to work with and ModelInferrer and no more Generator?

What is the difference between then?

I searched in different tutorials, but many of them still refer to a generator if you want to transform you DSL code to Java, for example.

Thanks in advance,

Leandro Nascimento
PhD student
Re: Difference between JVMInferrer and Generator [message #1042474 is a reply to message #1041952] Tue, 16 April 2013 13:29 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Hi the jvmmodelgenerator is used when you use base. You may simply
subclass it

--
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
Re: Difference between JVMInferrer and Generator [message #1042490 is a reply to message #1042474] Tue, 16 April 2013 13:46 Go to previous messageGo to next message
Leandro Marques is currently offline Leandro MarquesFriend
Messages: 11
Registered: July 2009
Junior Member
But let me understand it better: is it possible to generate .java code using the Model Inferrer as well as the regular generator does?

Tks
Re: Difference between JVMInferrer and Generator [message #1042498 is a reply to message #1042490] Tue, 16 April 2013 13:57 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
Yes

--
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
Re: Difference between JVMInferrer and Generator [message #1042504 is a reply to message #1042498] Tue, 16 April 2013 14:08 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 6550
Registered: July 2009
Senior Member
http://www.eclipse.org/forums/index.php/mv/msg/473491/1038310/#msg_1038310
Previous Topic:Could anybody provide some information about NodeModelUtils?
Next Topic:Problem customizing the outline
Goto Forum:
  


Current Time: Sun Dec 21 09:22:46 GMT 2014

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

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