Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Acceleo] Passing external parameter
[Acceleo] Passing external parameter [message #485397] Fri, 11 September 2009 15:35 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member

is it possible to pass an external parameter (e.g. a boolean value) to a
template. I want to add some information, which are not stored in the
model, to control the template invocations. I tried a bit with this
Property text dialog in Run Configurations...-Dialog, but with no success.

Thanks a lot
Re: [Acceleo] Passing external parameter [message #486402 is a reply to message #485397] Thu, 17 September 2009 14:04 Go to previous message
Laurent Goubet is currently offline Laurent GoubetFriend
Messages: 1900
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hi Timothy,

Passing a parameter to a template *should* work ... but I must admit I
am not the one who worked on that part of the code.

Just to be sure : you need to have defined your template so that it
takes a boolean as parameter "[template public generate(receiver :
EClass, bool : String)]" and you have to give "true" as the property
(one line of the "property" field per argument. Take good note that the
argument is a String, not a boolean. You'll have to convert this
yourself in the template.

Laurent Goubet

Timothy Marc a
Previous Topic:How to exit the FOR LOOP
Next Topic:how exclude object from set
Goto Forum:

Current Time: Thu Oct 06 15:08:18 GMT 2022

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

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

Back to the top