Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Generating code from a Graphiti application
[Acceleo] Generating code from a Graphiti application [message #1387146] Tue, 24 June 2014 12:03 Go to next message
Simone Di Cola is currently offline Simone Di ColaFriend
Messages: 60
Registered: February 2014
Member
Hi all,
I am quite new with Acceleo, so sorry for the (maybe) silly question.
I've created a Graphiti plugin based on an EMF model. Graphiti creates instances of elements specified in the EMF model, and adds them to the specified instance of the EMF model root class.
What I want to know is if, and how, I can generate code starting from that instance of the root class.

Hope that my question is clear.

Thanks for your attention
Simone
Re: [Acceleo] Generating code from a Graphiti application [message #1388493 is a reply to message #1387146] Thu, 26 June 2014 14:15 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7267
Registered: July 2009
Senior Member
Hi

Acceleo is a model to template language; it is not a code generator.

You may create or re-use an Acceleo template to perform code generation.

Just the same as you may create of re-use a Java or Ada program to do
exactly the same thing.

Regards

Ed Willink

On 24/06/2014 13:03, Simone Di Cola wrote:
> Hi all,
> I am quite new with Acceleo, so sorry for the (maybe) silly question.
> I've created a Graphiti plugin based on an EMF model. Graphiti creates
> instances of elements specified in the EMF model, and adds them to the
> specified instance of the EMF model root class. What I want to know is
> if, and how, I can generate code starting from that instance of the
> root class.
> Hope that my question is clear.
>
> Thanks for your attention
> Simone
Previous Topic:Components of Acceleo
Next Topic:[Acceleo] Referencing different UML diagrams in a transformation
Goto Forum:
  


Current Time: Fri Sep 24 19:22:04 GMT 2021

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

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

Back to the top