Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: jmhaapasa on May 17, 2005, 09:02:08 am
-
The macros don't seem to work in EA 5.x. For example in
%if genOptGenComments != "T"%
%endTemplate%
%PI=""%
$wrapLen = %genOptWrapComment%
$style = %genOptCPPCommentStyle%
%if $style == "XML.NET"%
%XML_COMMENT($wrapLen)%
%elseIf $style == "JavaDoc"%
/**\n
%WRAP_COMMENT( classNotes, "80", "", "" )%
\n*/
%else%
%CSTYLE_COMMENT($wrapLen)%
%endIf%
the WRAP_COMMENT macro expands to nothing.
I'm trying to generate doxygen-compliant comments, but with a lighter notation than the built-in javadoc macro.
-
Thanks for letting us know of this problem.
I've fixed the bug where WRAP_COMMENT wouldn't work.
The problem with WRAP is with the documentation. That function doesn't exist. Instead there is a function called WRAP_LINES that takes the same parameters as WRAP plus an extra one for something to put at the end of the line. I'll make sure that the documentation is corrected for the next build.
In the mean time you can change WRAP_COMMENT to WRAP_LINES in your template and it should work as you intend. (You should also see that WRAP_LINES is syntax highlighted.)
Hope this helps.
Simon
-
Thanks. I was a bit suspicious when WRAP wasn't highlighted.
WRAP_LINES works for us.