[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.m2t] Re: [Acceleo] Passing external parameter
|
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 écrit :
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
begin:vcard
fn:Laurent Goubet
n:Goubet;Laurent
org:<a href="http://www.obeo.fr/">Obeo</a>
email;internet:laurent.goubet@xxxxxxx
url:http://www.obeo.fr
version:2.1
end:vcard