Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] possible to use a genmodel with acceleo?
[Acceleo] possible to use a genmodel with acceleo? [message #734751] Sun, 09 October 2011 15:10 Go to next message
pessi mistisch is currently offline pessi mistisch
Messages: 6
Registered: October 2011
Junior Member
Hi!

Is it possible to use a genmodel instead of the model file (like with JET)?

Or is there an other best practice i've overseen for configuring the destination (and other properties) of the generated code with acceleo?

Re: [Acceleo] possible to use a genmodel with acceleo? [message #734869 is a reply to message #734751] Mon, 10 October 2011 04:56 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
Registered: April 2010
Location: Nantes (France)
Senior Member

Hi,

Is it possible to use a genmodel instead of the model file (like with JET)?


In the Acceleo examples, you can find an Ecore to JUnit tests generator that uses the genmodel as the input. The genmodel is an EMF based model so you can use it as the starting point of your generation.

Here is how to start:
[module main('http://www.eclipse.org/emf/2002/GenModel')/]

[template public main(model : GenModel)]
Hello World!
[/template]


Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau
Google+: stephane.begaudeau
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo



[Updated on: Mon, 10 October 2011 05:00]

Report message to a moderator

Re: [Acceleo] possible to use a genmodel with acceleo? [message #734894 is a reply to message #734869] Mon, 10 October 2011 06:20 Go to previous message
pessi mistisch is currently offline pessi mistisch
Messages: 6
Registered: October 2011
Junior Member
Hi!

Of course, it's just an EMF based model...
Sometimes the file extensions achieve that one looses sight of the inside. Smile

Thanks a lot!

[Updated on: Mon, 10 October 2011 06:21]

Report message to a moderator

Previous Topic:[acceleo] eContainer() always return an invalid object
Next Topic:XPandfacade and Check
Goto Forum:
  


Current Time: Sat Aug 30 06:35:18 EDT 2014

Powered by FUDForum. Page generated in 0.02265 seconds