This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 199814 - Meaningless Tooltip in property column of OutlineView
Summary: Meaningless Tooltip in property column of OutlineView
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Outline&TreeTable (show other bugs)
Version: 7.0
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-01 11:51 UTC by Geertjan Wielenga
Modified: 2011-09-06 16:27 UTC (History)
3 users (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch providing new client property for OutlineView tooltip (2.33 KB, patch)
2011-07-01 11:55 UTC, Geertjan Wielenga
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2011-07-01 11:51:49 UTC
In OutlineView, the tooltip in a property column (i.e., the table part of the OutlineView) the tooltip displays the value, which is meaningless, since that is already displayed in the cell.

It should be possible to configure whether nothing should be shown or use the short description of the property.
Comment 1 Geertjan Wielenga 2011-07-01 11:55:18 UTC
Created attachment 109184 [details]
Patch providing new client property for OutlineView tooltip

Usage:

outlineView.getOutline().putClientProperty("PropertyToolTipShortDescription", Boolean.TRUE); // Use bean short description as the tooltip. (default false)

outlineView.getOutline().putClientProperty("PropertyToolTipDisabled", Boolean.TRUE); // Disables the tooltip completely from the property columns. (default false)     (only for property columns, the tree column still shows the tooltip)
Comment 2 Martin Entlicher 2011-09-05 15:43:43 UTC
A simplified version of the patch is applied in changeset: 200901:6aa54b0ce62d
"PropertyToolTipDisabled" does not seem to be necessary, the existing property "ComputingTooltip" is used in the same logic.
"PropertyToolTipShortDescription" is set on for debugger views for convenience.
http://hg.netbeans.org/main/rev/6aa54b0ce62d
Comment 3 Quality Engineering 2011-09-06 14:27:26 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/6aa54b0ce62d
User: mentlicher@netbeans.org
Log: #199814 PropertyToolTipShortDescription client property introduced to retrieve tooltip text from the property short description.
Comment 4 Jesse Glick 2011-09-06 16:27:15 UTC
Probably this should be done as a proper API change, e.g. a public constant for the client property, with apichanges.xml marked.