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 99191 - Error tooltips are truncated
Summary: Error tooltips are truncated
Status: RESOLVED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
: 103706 109096 114286 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-03-28 01:50 UTC by _ tboudreau
Modified: 2007-11-05 13:42 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot (57.35 KB, image/png)
2007-03-28 01:51 UTC, _ tboudreau
Details

Note You need to log in before you can comment on or make changes to this bug.
Description _ tboudreau 2007-03-28 01:50:52 UTC
See attached screen shot - any sufficiently long tooltip is clipped at the edge
of the editor.  They should probably be htmlized and wrapped as necessary.
Comment 1 _ tboudreau 2007-03-28 01:51:19 UTC
Created attachment 40063 [details]
Screen shot
Comment 2 Vitezslav Stejskal 2007-03-28 05:22:14 UTC
Not very nice.
Comment 3 _ tboudreau 2007-03-28 06:50:36 UTC
BTW, if you want really performant line wrapping, org.openide.awt.HtmlRenderer
contains the code to do it, but the constant for specifying it is blocked by
default - if you wanted to petition to turn it on, it could probably get you
better performance than Swing's html rendering.
Comment 4 Vitezslav Stejskal 2007-05-14 02:03:12 UTC
*** Issue 103706 has been marked as a duplicate of this issue. ***
Comment 5 Jiri Prox 2007-07-11 13:51:17 UTC
*** Issue 109096 has been marked as a duplicate of this issue. ***
Comment 6 Vitezslav Stejskal 2007-07-18 10:36:28 UTC
*** Issue 110058 has been marked as a duplicate of this issue. ***
Comment 7 Roman Ondruska 2007-09-11 14:28:00 UTC
*** Issue 114286 has been marked as a duplicate of this issue. ***
Comment 8 steve_taylor 2007-09-14 03:20:05 UTC
Considering all the duplicates, the severity of the productivity loss by netbeans users and the relative ease of the
potential fix, it might be a good idea to make this P2 soon.
Comment 9 _ tboudreau 2007-09-14 04:50:05 UTC
Made P2.  Justification:  It's really frustrating when you get a popup that gives you just enough information to know that there is a problem, but not enough to 
know what the problem is.  In other words, having no popup would be better than having one that gives a user *almost* enough information to solve the 
problem.

Overall, we need an API for doing popups and to make this consistent across NetBeans - right now everybody invents their own popup code and there is no 
consistency.  But we certainly know where all the popups are and can make them consistent and usable for 6.0 without such an API.
Comment 10 Vitezslav Stejskal 2007-09-20 16:24:13 UTC
ToolTipSupport now supports both plain text and html. While html inherently supports line wrapping no special handling
was needed for html tooltips. For plain text line wrapping is supported for single line tooltips, which should be the
majority of annotation tooltips in the IDE. Multiline tooltips are assumed to be pre-formatted in some way and are
displayed as they come.

I think this considerably improves the situation, even though there still can be tooltips that won't fit the available
space even when line wrapped. I'm not sure how this should be solved, but it certainly won't be easy. One way could be
to copy what Eclipse does by providing a shortcut, which changes a tooltip window into a scrollable component, which can
gain focus and then be controlled by keyboard and mouse.

Checking in ToolTipSupport.java;
/cvs/editor/libsrc/org/netbeans/editor/ext/ToolTipSupport.java,v  <--  ToolTipSupport.java
new revision: 1.36; previous revision: 1.35
done
Comment 11 John Baker 2007-10-04 20:45:51 UTC
Since tooltips are still truncated, is there another issue tracking this ?

The tooltip for the watch expressions in the Watch window are not truncated, so why can't the same be applied to the Editor?