Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] quick question on acceleo
[Acceleo] quick question on acceleo [message #808004] Mon, 27 February 2012 04:32 Go to next message
Eclipse UserFriend
Hi everyone,
I transformed a set of model activity diagram to ATN models with ATL.
These ATN models are written in XMI, and they are consistent with a meta-model of ATN.
Is it possible to generate Java code for all the resulting models with Acceleo?
cordially.

[Updated on: Mon, 27 February 2012 04:32] by Moderator

Re: [Acceleo] quick question on acceleo [message #808929 is a reply to message #808004] Tue, 28 February 2012 04:51 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

Yes (since ATL uses EMF models)

Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau & @acceleo
Google+: stephane.begaudeau & acceleo
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
Re: [Acceleo] quick question on acceleo [message #809036 is a reply to message #808929] Tue, 28 February 2012 07:19 Go to previous messageGo to next message
Eclipse UserFriend
Merci monsieur,
So, is it possible to program a template for my metamodel ATN ?
in other words, change the module '...emf/2002/Ecore' by the meta-model ATN ?
Merci d'avance.
Re: [Acceleo] quick question on acceleo [message #809129 is a reply to message #809036] Tue, 28 February 2012 09:11 Go to previous messageGo to next message
Eclipse UserFriend
Hi,

ou can start your generator with a module like this:

[comment encoding=utf-8/]
[module myModyke()]

[template public hello(o: MyType)]
[comment @main/]
[file('stuff.txt', false, 'utf-8')]
Hello World !
[/file]
[/template]


Regards,

Stephane Begaudeau, Obeo

--
Twitter: @sbegaudeau & @acceleo
Google+: stephane.begaudeau & acceleo
Blog: http://stephanebegaudeau.tumblr.com
Acceleo Documentation: http://docs.obeonetwork.com/acceleo
Re: [Acceleo] quick question on acceleo [message #809169 is a reply to message #809129] Tue, 28 February 2012 10:03 Go to previous messageGo to next message
Eclipse UserFriend
Hi, above all I thank you for your help
[module myModyke()] this means the path of my meta-model ?
for example, [module /projet/MetaModeles/ATNdiagram.ecore()] ??

Regards.
Re: [Acceleo] quick question on acceleo [message #811365 is a reply to message #809169] Fri, 02 March 2012 03:46 Go to previous message
Eclipse UserFriend
Hi,

Please take a look at the Acceleo documentation available on the wiki, at least the quick start.

"myModyke" (actually, Stephane wanted to write "myModule") is the name of your module. The metamodel URI goes inside of the parenthesis.

Laurent Goubet
Obeo
Previous Topic:[XPAND] Problem with token names
Next Topic:[XPAND] Generating More Than One Instance
Goto Forum:
  


Current Time: Tue Jul 22 19:38:04 EDT 2025

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

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

Back to the top