By Geertjan-Oracle on Oct 19, 2011
During a JavaOne IDE-comparison session, in a valiant effort to prove my impartiality, I revealed some of my pet peeves about NetBeans IDE. One of these was this odd scenario:
Above, I have called up a hint to convert an if-else statement to a strings-in-switch statement. However, annoyingly, there's also a tooltip, a meaningless tooltip, taking up space and blocking part of my code. Here's another example:
To me, this looks messy and, worst of all, blocks me from seeing part of my code. Ideally, the tooltip would be removed when the hint is shown. Another point of view might be to make the tooltips more meaningful. But how more meaningful can it be? The problem statement is clear, i.e., we're in a situation where the characters on the opposite sides of the equals statement can be switched. End of story. Let's not waste anyone's time in being verbose about it, in my opinion.
Andrzej "Featureous" Olszak told me at JavaOne that he, for one, agrees with me. So I thought it would make sense to create an issue about this and here it is:
After a bit of discussion in the issue, the problem is now solved, thanks to Jan Lahoda. Using the latest daily build, this is now the default thing I see when prompting the hint to be displayed:
Much better! Of course, if you hover your mouse over the tip/hint combination in the sidebar, you'll still see the tooltip:
However, once the hint has been prompted to be displayed, you'll not see the tooltip anymore:
If you'd like the old behavior back, pass in -J-Dorg.netbeans.modules.editor.hints.HintsUI.always.show.error=true. This way, everyone's happy. Me, especially! So, this new behavior will be part of NetBeans IDE 7.1.