Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] Preference setting for max number of characters displayed in details pane of Variables View applied wrongly?

Hi All,

There is a preference setting for limiting the length of the string displayed in the details pane of the Variables View.
This setting is done using the constant:
IDebugUIConstants.PREF_MAX_DETAIL_LENGTH

The value of this preference is read in method DefaultDetailPane$DetailJob.detailComputed(...)
Here, the incoming string represents the toString() representation of a single element.
In the case where multiple elements are selected, the incoming string is appended to the existing description displayed in the variables view.
The preference limit is applied to the appended string, rather than to the entire detail string as a whole.

The javadoc on the constant implies that the limit is applied on the length of the entire details pane string, while in implementation, the length is applied to the description of each element in the list.

Is this a bug?

Thanks
Abeer Bagul
Software Engineer - Tensilica India

Back to the top