Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Together2006R2 generetes wrong HTML

3 views
Skip to first unread message

Tomohiro Takahashi

unread,
Apr 10, 2007, 4:20:12 AM4/10/07
to
Hi, Elena-san
We are evaluating Together 2006 R2.

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

Tomohiro Takahashi

unread,
Apr 11, 2007, 3:26:24 AM4/11/07
to
Hi, Elena-san

This is critical problem.
Do you have any plan to release hotfix or so?

ElenaA

unread,
Apr 11, 2007, 5:04:10 AM4/11/07
to
to fix the problem, try the following:

- 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

Tomohiro Takahashi

unread,
Apr 11, 2007, 7:48:15 AM4/11/07
to
Hi, Elena-san

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

0 new messages