We have found a problem when generating HTML documents.
Togehter generates wrong HTML about method's parameter.
For example,
1) create Java modeling project
2) create class and add method as below
public void method1(int parameter0) {
return;
}
3) select [Project] | [Generate HTML...]
4) wrong HTML document has been generated as below. 'Integer' must be 'int'.
public void method1(Integer parameter0);
Is there any workaround?
--
TAKAHASHI, Tomohiro
This is critical problem.
Do you have any plan to release hotfix or so?
- open
\plugins\com.borland.gendoc.core_8.1.1\templates\genhtml\lib\class.tpl in
Template Designer
- open 'Operation Briefly' stock section
- open the Properties of formula control in the static section inside
Property Iterator: Parameter (the control that you need has a dark blue font
color)
- modify the Expression body as follows:
let element : uml::kernel::Element = findElement
(getSubproperty('curPropertyInstance', '$typeReferencedElement'))
in
if (not element.oclIsUndefined() and not
element.oclIsKindOf(uml20::kernel::PrimitiveType))then
element.getPropertyExt('%extClassName') else
getSubproperty('curPropertyInstance', '$type') endif
Or even more simle:
getSubproperty('curPropertyInstance', '$type')
- save the template
- open 'Operation Description' stock section
- find similar formula control there (it's also inside Property Iterator:
Parameter )
- modify the expression in the way suggested above
- save changes
This should solve your problem
The fix works fine!!
Thank you very much.
--
Warmest regards,
TAKAHASHI, Tomohiro
ElenaA wrote:
>
> to fix the problem, try the following:
>
> - open
> \plugins\com.borland.gendoc.core_8.1.1\templates\genhtml\lib\class.tpl in
> Template Designer
snip