Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Can Acceleo do something like JET's c:dump
[Acceleo] Can Acceleo do something like JET's c:dump [message #672255] Fri, 20 May 2011 13:11 Go to next message
Ronan B is currently offline Ronan BFriend
Messages: 249
Registered: July 2009
Senior Member
Hi,
I'm an Acceleo noob. I'm looking to use it as a replacement for some of our simpler JET templates to get a feel for the language/environment.

My question is can Acceleo do something similar to the JET c:dump whereby on a template match the exact input and its contents can be transferred to the output. My use case is an Ecore/XML model is the input and I want todo some minor manipulations on the outer most element before directly copying the inner contents to the output text model. This is quite easy in JET.

I see Acceleo supports "Generation Patterns" but this isn't exactly what I had in mind as this exposes all my metamodel to the M2T transform making maintenance an issue.

Thanks!
Ronan
Re: [Acceleo] Can Acceleo do something like JET's c:dump [message #673299 is a reply to message #672255] Mon, 23 May 2011 07:30 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 Ronan,

Acceleo does not have something similar to the JET c:dump, you could always try to use some Java services to get the content of the XML of your model but since they are no equivalent in Acceleo, you won't find a "nice" solution to this very specific problem.

Stephane Begaudeau, Obeo
--
Twitter: @sbegaudeau
Acceleo wiki: http://wiki.eclipse.org/Acceleo
Blogs: http://stephanebegaudeau.tumblr.com & http://sbegaudeau.tumblr.com



Re: [Acceleo] Can Acceleo do something like JET's c:dump [message #673323 is a reply to message #673299] Mon, 23 May 2011 08:59 Go to previous message
Ronan B is currently offline Ronan BFriend
Messages: 249
Registered: July 2009
Senior Member
Hi Stephane,
Aha I see! I have tried that out now.
Thanks!
Ronan
Previous Topic:Acceleo 3.x - differences between ant task launcher and acceleo launcher
Next Topic:Extending the given function operators for Acceleo
Goto Forum:
  


Current Time: Tue Dec 23 03:57:55 GMT 2014

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

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