Project

General

Profile

Actions

Bug #2384

closed

Documentation display problems in Kepler

Added by Dan Higgins over 18 years ago. Updated over 18 years ago.

Status:
Resolved
Priority:
Normal
Category:
documentation
Target version:
Start date:
03/14/2006
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
2384

Description

In adding documentation to the RExpression actor, I discoved a problem with
the documentation display in Kepler (and perhaps in Ptolemy, also).

Consider one parameter defined in the RExpression actor -

/**
 * The height of the output graphics bitmap in pixels
*/
public StringParameter numYPixels;

But later on, this parameter is created with the statement

numYPixels = new StringParameter(this, "Number of Y pixels in image");

Note that the display string "Number of Y pixels in image" is not the same as
the varible name 'numYPixels'

The doclet generated xml file has the proper association between the property
and value; i.e.

<property name="numYPixels">The height of the output graphics bitmap in
pixels</property>

But when I display the doc xml in Kepler using 'Get Documentation' the result is

"Number of Y pixels in image - No description"

The code to display the xml file replaces the 'numYPixels' name with its display
string 'Number of Y pixels in image' but it then loses the value! This seems to
happen whenever the parameter name is different than the display string; when
they agree, the descriptions are shown properly.

Dan

Actions #1

Updated by Dan Higgins over 18 years ago

This 'bug' is fixed by correctly defining parameters so that constructor uses the same text as variable name and using 'setDisplayName'. (i.e following what PTII consider correct coding)

Actions #2

Updated by Redmine Admin over 11 years ago

Original Bugzilla ID was 2384

Actions

Also available in: Atom PDF