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 53123 - Tooltips do not appear in navigator when using KB
Summary: Tooltips do not appear in navigator when using KB
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Navigation (show other bugs)
Version: 4.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords: A11Y, UI
Depends on:
Blocks:
 
Reported: 2005-01-07 18:40 UTC by Jesse Glick
Modified: 2007-10-22 13:09 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jesse Glick 2005-01-07 18:40:29 UTC
Is there supposed to be some way to see tooltips
(full colorized method signature, for example)
when using the keyboard? Tooltips are fine when I
hover the mouse over an item, but I would like to
see them when using the keyboard.

P2 because there is no horizontal scrollbar or
message truncation in the trunk version, and so
members which display longer than the horiz width
of the navigator window simply cannot be read
using the KB only.
Comment 1 David Simonek 2005-01-10 12:45:12 UTC
Reassigning to HIE, as this is actually missing part in UI spec I
believe. HIE, please write your opinion /and/or modify the spec, then
return issue back for implementation.
Comment 2 Jindrich Dinga 2005-01-10 16:10:28 UTC
According to JLF, there should be a shortcut Ctrl-F1 for displaying or dismissing tooltips, 
by pressing Escape, the tooltip should be dismissed as well. These shortcuts should work 
in whole IDE.
Comment 3 Jesse Glick 2005-01-10 21:05:23 UTC
C-F1 doesn't seem to be working for me, but maybe side-effect of
another bug.

Note that the only apparent place in the online help where the
existence of C-F1 is even mentioned is somewhere in the section on
using the online help viewer; certainly not where I would have
expected it! Not in the top matches for "tool tip" in Search, either.
Comment 4 Patrick Keegan 2005-01-11 15:30:24 UTC
I'm not even sure where Ctrl-F1 works at all. I can only get tooltips
to work with a mouse over. It would be cool if Ctrl-F1 could, e.g.
show error tooltips for an editor line or property tooltips for the
prop. sheet. But I can't get this to work (not even in 3.6).
Comment 5 David Simonek 2005-01-11 16:00:02 UTC
Yes, I can confirm that Ctrl+F1 doesn't work at all across all IDE. Do
HIE guys still recommend such solution? Navigator will then be
inconsistent with the rest of the system...
Comment 6 Jesse Glick 2005-01-12 05:03:35 UTC
C-F1 works on the JavaHelp window, if you have focus on one of the
toolbar buttons - it shows the tool tip for that button. If there is
anywhere else in the IDE where it works, I don't know about it.
Comment 7 Jindrich Dinga 2005-01-12 09:44:03 UTC
HIE's recommend to keep this shortcut (Ctrl-F1) for displaying the tooltip. We'll post bug 
for all IDE.
Comment 8 David Simonek 2005-01-12 10:46:32 UTC
Oops, beware! Let me remind you that entering one bug for whole IDE is
*useless and will not solve anything*. Specific issues for specific
modules, components, windows should be entered if you really want
Ctrl+F1 to work across the IDE.
Just curious, is it only JLF or is it some broader standard? I don't
like Ctrl+F1 idea mainly because I think this is only some forgotten
thing in JLF which no real application in the world uses. Jindro
please consider doing some research among famous apps and our
competitors before asking for a lot of work on various modules. Thx.

Aha, and how should Ctrl+F1 really work? Imagine that I have focus on
line in navigator (which can show tooltip) but mouse pointer points to
tab containing java source name opened in editor. Which tooltip will
be shown on Ctrl+F1? Does JLF spec say anything? Note that if editor
tab tooltip should be shown according JLF, then such solution wouldn't
work at all for navigator.

Comment 9 Jesse Glick 2005-01-13 01:44:33 UTC
http://java.sun.com/products/jlf/ed2/book/Appendix.A20.html

I think C-F1 is supposed to operate on the selected component,
regardless of mouse position.
Comment 10 David Simonek 2005-01-25 16:59:48 UTC
Unfortunately, I found out that Ctrl+F1 doesn't work correctly due to
JDK bug, which I'll submit when I'll got bugster working :-(
JComponent.getTooltipText and getTooltipLocation are not called by
Swing when Ctrl+F1 action is performed.
Only solution I see how to get this working now is to copy big part of
TooltipManager, which is not worth IMO and I'll not do it. SO
unfortunately it looks like wontfix for me.
Comment 11 David Simonek 2005-01-31 16:37:34 UTC
Further eval: I managed to write a hack to get Ctrl+F1 tooltips
basically working. Tooltips appear and hide correctly, on correct
places. Ctrl+F1 unfortunately don't follow selection, because Swing
don't support it, and I found no workaround.

To deliver full context-aware Ctrl+F1 functionality, tooltips
management IMHO has to be implemented on our side, not using
ToolTipManager. I think this is the task for future releases, where
enhanced functionality will be probably requested by HIE (hyperlinks,
integration with editor javadoc popup window).

fixed in main trunk for now:
/cvs/objectbrowser/navigator/src/org/netbeans/modules/navigator/Navigator.java,v
 <--  Navigator.java
new revision: 1.20; previous revision: 1.19

/cvs/objectbrowser/navigator/src/org/netbeans/modules/navigator/NavigatorJList.java,v
 <--  NavigatorJList.java
new revision: 1.6; previous revision: 1.5

/cvs/objectbrowser/navigator/src/org/netbeans/modules/navigator/NavigatorJTree.java,v
 <--  NavigatorJTree.java

/cvs/objectbrowser/navigator/src/org/netbeans/modules/navigator/TooltipHack.java,v
 <--  TooltipHack.java
initial revision: 1.1
Comment 12 Jaromir Uhrik 2007-10-22 13:09:46 UTC
Verified. It worked fine in target release but I have filed new issue for 6.0 - see issue #119640.