Bug 243397 - [hovering] Can't see Javadoc when hovering over a marker (add link to problem hover)
Summary: [hovering] Can't see Javadoc when hovering over a marker (add link to problem...
Status: ASSIGNED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Text (show other bugs)
Version: 3.5   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Text-Inbox CLA
QA Contact:
URL:
Whiteboard: fix candidate
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-07 06:00 EDT by moran CLA
Modified: 2012-03-22 09:33 EDT (History)
3 users (show)

See Also:


Attachments
popup shown instead of javadoc (18.99 KB, image/gif)
2008-08-07 06:00 EDT, moran CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description moran CLA 2008-08-07 06:00:47 EDT
Created attachment 109393 [details]
popup shown instead of javadoc

Build ID: I20080617-2000

Steps To Reproduce:
Write a line of code in the editor:
Collection tmp = new ArrayList();

When you hover over either Collection or ArrayList to see the javadoc, the 'multiple markers' popup interferes and does not display an option to see the javadoc.

You only get:
ArrayList is a raw type. References to generic type ArrayList<E> should be parameterized
3 quick fixed are available:
- Add type parameters to arraylist
- Infer generic type arguments..
- Add @suprress warning



More information:
Usability issue - would be better to either show javadoc in a popup next to the popup of suggestions, or give an option to show the javadoc when I press F2.
Comment 1 Dani Megert CLA 2008-08-07 06:17:51 EDT
Problems have higher weight than Javadoc. This is by design and won't be changed. 

If you always want to see Javadoc, you can choose this in the preferences or assign a modifier to the Javadoc hover (modifer+hovering will then always show the Javadoc for you).
Comment 2 moran CLA 2008-08-07 07:22:02 EDT
How do I set to always see javadoc?
Comment 3 moran CLA 2008-08-07 07:47:21 EDT
(In reply to comment #1)
> Problems have higher weight than Javadoc. This is by design and won't be
> changed. 
> 
> If you always want to see Javadoc, you can choose this in the preferences or
> assign a modifier to the Javadoc hover (modifer+hovering will then always show
> the Javadoc for you).
> 

These are warnings, not errors. Thus although they have a higher weight I can choose to ignore them. I still think there should be an option when I press F2 to also redirect me to the javadoc. Either by pressing F2 again or via link/icon.

This is very annoying when debugging code or even in development.
So I hope you would reconsider.

For now, how do I set the two options you mentioned?
Comment 4 Dani Megert CLA 2008-08-07 08:07:53 EDT
Java > Editor > Hovers.
Comment 5 Dani Megert CLA 2011-04-05 06:19:29 EDT
We could add a link or button to the problem hover.
Comment 6 Deepak Azad CLA 2011-07-05 09:08:07 EDT
Can't we simply cycle through various hovers, something similar to the content assist popup ?
Comment 7 Dani Megert CLA 2011-07-05 09:13:00 EDT
(In reply to comment #6)
> Can't we simply cycle through various hovers, something similar to the content
> assist popup ?

How often do you have that issue besides the problem mentioned here?
Comment 8 Deepak Azad CLA 2011-07-05 09:26:09 EDT
I can think of one more case at this point - while debugging you see the debug hover for fields, but you may also be interested in Javadoc hover.
Comment 9 Markus Keller CLA 2011-07-05 09:43:23 EDT
Maybe the best match hover could just add a button to the rich hover toolbar to replace the current hover with the next best hover.
Comment 10 Dani Megert CLA 2011-07-05 09:47:10 EDT
Yeah, we could just add 'Next' and 'Previous' buttons. Luxury solution would also offer a hover on those buttons.
Comment 11 Deepak Azad CLA 2011-07-05 09:52:21 EDT
Another luxury would be a key binding to go to the next hover. We can use F2 for this.