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 11:35 Go to next message
Timothy Marc is currently offline Timothy Marc
Messages: 547
Registered: July 2009
Senior Member
Hi,

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
TImothy
Re: [Acceleo] Passing external parameter [message #486402 is a reply to message #485397] Thu, 17 September 2009 10:04 Go to previous message
Laurent Goubet is currently offline Laurent Goubet
Messages: 1609
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------090606060403000905000503
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
Obeo

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


Current Time: Wed Apr 16 16:05:23 EDT 2014

Powered by FUDForum. Page generated in 0.19576 seconds