Skip to main content


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 19:10 Go to next message
pessi mistisch is currently offline pessi mistischFriend
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 08:56 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 458
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 09: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 10:20 Go to previous message
pessi mistisch is currently offline pessi mistischFriend
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 10:21]

Report message to a moderator

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


Current Time: Fri Mar 29 12:39:40 GMT 2024

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

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

Back to the top