Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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
DJAFER Missing name is currently offline DJAFER Missing name
Messages: 5
Registered: January 2012
Location: France
Junior Member
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]

Report message to a 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
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
Registered: April 2010
Location: Nantes (France)
Senior Member

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
DJAFER Missing name is currently offline DJAFER Missing name
Messages: 5
Registered: January 2012
Location: France
Junior Member
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
Stephane Begaudeau is currently offline Stephane Begaudeau
Messages: 406
Registered: April 2010
Location: Nantes (France)
Senior Member

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
DJAFER Missing name is currently offline DJAFER Missing name
Messages: 5
Registered: January 2012
Location: France
Junior Member
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
Laurent Goubet is currently offline Laurent Goubet
Messages: 1625
Registered: July 2009
Senior Member
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: Sat Aug 23 11:24:09 EDT 2014

Powered by FUDForum. Page generated in 0.01894 seconds