Home » Newcomers » Newcomers » Now getting javadoc hovers instead of errors
|
Re: Now getting javadoc hovers instead of errors [message #648471 is a reply to message #648438] |
Thu, 13 January 2011 04:21 |
Deepak Azad Messages: 543 Registered: July 2009 |
Senior Member |
|
|
On 1/13/2011 3:59 AM, David M. Karr wrote:
> Normally, when I hover my mouse on a line with a red squiggle, it will
> show me the error(s) on the line and let me quick-fix them. A few days
> ago I was fiddling in my preferences and I saw something about hovers or
> javadoc which seemed interesting, so I changed it. Today, I just noticed
> that when I hover on a line with red squiggles, instead of the hover
> showing me the error, it's showing me the javadoc for the line.
>
> Unfortunately, even after browsing through my preferences again, I can't
> figure out what setting controls this.
Preferences > Java > Editor > Hovers -> make sure that 'Combined hover'
is selected.
|
|
| |
Re: Now getting javadoc hovers instead of errors [message #648542 is a reply to message #648438] |
Thu, 13 January 2011 13:08 |
Deepak Azad Messages: 543 Registered: July 2009 |
Senior Member |
|
|
hmm... I also assume then there is no 'Key Modifier' for Combined Hover,
or if there is you are using that key while hovering.
On 1/13/2011 3:59 AM, David M. Karr wrote:
> Normally, when I hover my mouse on a line with a red squiggle, it will
Just to be sure, you hover over the part of the line which has the red
squiggle, right ?
> show me the error(s) on the line and let me quick-fix them. A few days
> ago I was fiddling in my preferences and I saw something about hovers or
> javadoc which seemed interesting, so I changed it. Today, I just noticed
> that when I hover on a line with red squiggles, instead of the hover
> showing me the error, it's showing me the javadoc for the line.
>
> Unfortunately, even after browsing through my preferences again, I can't
> figure out what setting controls this.
|
|
| | | | | |
Re: Now getting javadoc hovers instead of errors [message #648650 is a reply to message #648597] |
Thu, 13 January 2011 19:37 |
David M. Karr Messages: 801 Registered: July 2009 |
Senior Member |
|
|
I appear to have resolved this. The state of the "Text hover key modifier preferences" was like this before I finally fixed it ("[]" and "[x]" shows whether it's checked, and the "|" separator comes before the bound key, if present):
[x] Combined Hover |
[ ] Groovy Information Hover |
[ ] Pointcut Definition |
[ ] Variable Values |
[ ] Problem Description |
[x] Externalized String | Ctrl+Alt
[ ] Javadoc |
[x] Source | Shift
[ ] Annotation Description |
This shows that only three hovers were enabled. What's really perplexing is that with it in this state, I get the javadoc popup on hover. I don't even have the "Javadoc" hover enabled.
I finally decided that the fact that "Problem Description" is unchecked could be a problem. I tried enabling that, but it complained that I now had both "Combined Hover" and "Problem Description" bound to the same key (nothing). So, I unchecked "Combined Hover".
Now, the hover behavior is closer to what I want, perhaps better than I was thinking before. If the line has a red or yellow underline, hovering shows the error/warning and the quick-fix choices.
If it doesn't have a colored underline, hovering does nothing, but since I like to use the keyboard, pressing "f2" (bound to "show-tooltip-description") brings up the javadoc.
I even concluded that I want the ability to see the javadoc when I have a problem on the line, so I checked the "Javadoc" entry and added a unique modifier binding for it.
Whatever. I don't understand quite how this dialog works, but I guess I've got it working in a semblance of reasonable behavior.
|
|
|
Re: Now getting javadoc hovers instead of errors [message #648684 is a reply to message #648650] |
Fri, 14 January 2011 02:30 |
Deepak Azad Messages: 543 Registered: July 2009 |
Senior Member |
|
|
On 1/14/2011 1:07 AM, David M. Karr wrote:
> I appear to have resolved this. The state of the "Text hover key
> modifier preferences" was like this before I finally fixed it ("[]" and
> "[x]" shows whether it's checked, and the "|" separator comes before the
> bound key, if present):
>
> [x] Combined Hover | [ ] Groovy Information Hover |
> [ ] Pointcut Definition |
> [ ] Variable Values |
> [ ] Problem Description |
> [x] Externalized String | Ctrl+Alt
> [ ] Javadoc |
> [x] Source | Shift
> [ ] Annotation Description |
>
> This shows that only three hovers were enabled. What's really perplexing
> is that with it in this state, I get the javadoc popup on hover. I don't
> even have the "Javadoc" hover enabled.
Select Combined Hover in the table and look at its description in the
bottom half of the dialog. Quoting the same here - "Tries the hovers in
the sequence listed in above table, excluding this hover, and uses the
one which fits best for the selected element and the current context."
'Groovy Information Hover' and 'Pointcut Definition' are 2 extra hovers
here (as compared to Eclipse Classic SDK which I am using), I guess
they could be causing the problem.
>
> I finally decided that the fact that "Problem Description" is unchecked
> could be a problem. I tried enabling that, but it complained that I now
> had both "Combined Hover" and "Problem Description" bound to the same
> key (nothing). So, I unchecked "Combined Hover".
>
> Now, the hover behavior is closer to what I want, perhaps better than I
> was thinking before. If the line has a red or yellow underline, hovering
> shows the error/warning and the quick-fix choices.
>
> If it doesn't have a colored underline, hovering does nothing, but since
> I like to use the keyboard, pressing "f2" (bound to
> "show-tooltip-description") brings up the javadoc.
>
> I even concluded that I want the ability to see the javadoc when I have
> a problem on the line, so I checked the "Javadoc" entry and added a
> unique modifier binding for it.
>
> Whatever. I don't understand quite how this dialog works, but I guess
> I've got it working in a semblance of reasonable behavior.
|
|
| | | |
Goto Forum:
Current Time: Thu Apr 25 08:51:40 GMT 2024
Powered by FUDForum. Page generated in 0.07361 seconds
|