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 205595 - Popup Tooltips Could Be More Expressive
Summary: Popup Tooltips Could Be More Expressive
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.1
Hardware: PC Linux
: P2 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-28 08:26 UTC by Geertjan Wielenga
Modified: 2013-09-02 14:20 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Screenshot showing long tooltip popup (206.93 KB, image/png)
2011-11-28 08:27 UTC, Geertjan Wielenga
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Geertjan Wielenga 2011-11-28 08:26:13 UTC
NetBeans is using simple plain text to display the most verbose form of a javac diagnostic, which makes it hard for a user to read on screen.   javac provides mechanisms to remove unnecessary details from a diagnostic, and to facilitate the use of rich text to display the message -- but as yet, NetBeans does not use those features.

A couple of the blog entries are:
http://blogs.oracle.com/jjg/entry/improving_javac_diagnostics
http://blogs.oracle.com/mcimadamore/entry/rich_diagnostics_landed_on_javac
Comment 1 Geertjan Wielenga 2011-11-28 08:27:00 UTC
Created attachment 113561 [details]
Screenshot showing long tooltip popup
Comment 2 jjg 2011-11-28 19:28:48 UTC
There are potentially two issues here: one is with respect to the popup dialog, the second, arguably harder one is the diags that appear in the compilation output window.   Although red-squigglies are nice, there are times when it is easier to fix issues in the order found in the compilation window.
Comment 3 Quality Engineering 2011-12-01 12:10:03 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/1a455d3bead6
User: Jan Lahoda <jlahoda@netbeans.org>
Log: #205595: using RichDiagnosticFormatter to produce Diagnostic.getMessage.
Comment 4 Jan Lahoda 2011-12-05 12:25:33 UTC
(In reply to comment #2)
> There are potentially two issues here: one is with respect to the popup dialog,
> the second, arguably harder one is the diags that appear in the compilation
> output window.   Although red-squigglies are nice, there are times when it is
> easier to fix issues in the order found in the compilation window.

Hm, changing anything in the output window is really much harder. NetBeans virtually never runs javac directly, it uses either ant or maven to perform the compilation. I can imagine some non trivial ways to hook into the ant's process, but I have no idea how to do that with maven (which may be caused by my lack of knowledge of maven).

Note that there is a Tasks window (menu Window/Tasks) that can also show the compilation errors - its only necessary to enable "Compilation Errors" in the selected filter.