Hi gmpff,
Thanks for the note and detailed information.
The code template is in error: the "throws" and the "stereotype" macros
should not contain those spaces. The template has been updated for the
next release of EA (Build 654). Additionally, there appears to be a bug
in the form of the conditional expression used.
As you pointed out this form does not work:
%opTag:" throws" ? "throw " value : ""%
(The bug appears to be particular to tagged value conditional expressions only)
This form works:
%opTag:"throws"=="" ? "" : " throw " value%
As regards the use of the != operator in these macros.
// 2. %classTag:"atag" != "" ? "yes" : "no"%
This is not expected to work. Only the == operator is available. The reason you'll see blank output is because the macro was not recognised as valid. Admittedly this is an odd limitation and will probably be addressed in a future version. The limitation is easily overcome however, using one of the following:
%tag:"name"=="" ? "value_empty" : "value_non_empty"%
or (as you discovered);
%if tag:"name"!=""%
value_non_empty
%endIf%
I hope this explains. Thanks again for your feedback.
Regards,
Ben