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 09:32 Go to next message
DJAFER Missing name is currently offline DJAFER Missing nameFriend
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 09:32]

Report message to a moderator

Re: [Acceleo] quick question on acceleo [message #808929 is a reply to message #808004] Tue, 28 February 2012 09:51 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 413
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 12:19 Go to previous messageGo to next message
DJAFER Missing name is currently offline DJAFER Missing nameFriend
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 14:11 Go to previous messageGo to next message
Stephane Begaudeau is currently offline Stephane BegaudeauFriend
Messages: 413
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 15:03 Go to previous messageGo to next message
DJAFER Missing name is currently offline DJAFER Missing nameFriend
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 08:46 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1638
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: Mon Nov 24 16:37:48 GMT 2014

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

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