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.
Summary: | Message about breakpoint not printed to status bar when step into selection is confirmed | ||
---|---|---|---|
Product: | editor | Reporter: | Jiri Skrivanek <jskrivanek> |
Component: | Hints & Annotations | Assignee: | Jan Lahoda <jlahoda> |
Status: | VERIFIED FIXED | ||
Severity: | normal | CC: | mentlicher |
Priority: | P3 | Keywords: | T9Y |
Version: | 7.1 | ||
Hardware: | PC | ||
OS: | Windows XP | ||
Issue Type: | DEFECT | Exception Reporter: |
Description
Jiri Skrivanek
2011-08-24 11:01:41 UTC
Reproduced. But I do not think that the bug is in debugger. The problem is, that we use org.openide.awt.StatusDisplayer for some messages and org.netbeans.editor.Utilities for other messages. StatusDisplayer.setStatusText() logs message with the default (0) importance, while Utilities.setStatusText() and Utilities.clearStatusText() uses "1" importance (see StatusBar.setText() method at line 519). The result is that after Utilities.clearStatusText() is called, no messages are displayed till the "empty" clearing messages expires (after 5 seconds). Debugger sets the status texts correctly, but the one empty status with higher importance prevents them from appearing. Please note that I can not solve this by calling Utilities.setStatusText(.., .., 0), since 0 importance is not accepted by StatusDisplayer.setStatusText(). IMHO Utilities.setStatusText() should use the 0 importance by default. Moving to editor to evaluate why the 1 importance is used. Lets see how this works (it works in the specified tests case, so the question is whether this will be enough for other typical usecases): http://hg.netbeans.org/main-silver/rev/c3b763972342 Integrated into 'main-golden', will be available in build *201205180400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/c3b763972342 User: Jan Lahoda <jlahoda@netbeans.org> Log: #201275: clearing status bar message not by setting an empty message, but rather by actually removing the original message. |