Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Now getting javadoc hovers instead of errors
Now getting javadoc hovers instead of errors [message #648438] Wed, 12 January 2011 22:29 Go to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
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.
Re: Now getting javadoc hovers instead of errors [message #648471 is a reply to message #648438] Thu, 13 January 2011 04:21 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
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 #648478 is a reply to message #648471] Thu, 13 January 2011 05:10 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
Sorry, that's not it. It's already selected.
Re: Now getting javadoc hovers instead of errors [message #648542 is a reply to message #648438] Thu, 13 January 2011 13:08 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
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 #648551 is a reply to message #648478] Thu, 13 January 2011 13:26 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 13.01.2011 06:10, David M. Karr wrote:
> Sorry, that's not it. It's already selected.
Then reset the whole page to defaults.

Dani
Re: Now getting javadoc hovers instead of errors [message #648574 is a reply to message #648551] Thu, 13 January 2011 14:55 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
No difference. It was already set to the defaults.
Re: Now getting javadoc hovers instead of errors [message #648575 is a reply to message #648542] Thu, 13 January 2011 14:57 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
There is no key modifier set for combined hover, and I am hovering the mouse over the part of the line with the colored underline, either red or yellow. It only shows the javadoc in the popup, not the error or warning. If I hover in the marker in the margin, it shows the error or warning, but that's not what I'm looking for.
Re: Now getting javadoc hovers instead of errors [message #648582 is a reply to message #648574] Thu, 13 January 2011 15:08 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 13.01.2011 15:55, David M. Karr wrote:
> No difference. It was already set to the defaults.
That sounds strange. Maybe some additional plug-ins causing this. You
are talking about the Java editor, right? Would it be possible to
provide your workspace to me, so that I can have a look?

Dani
Re: Now getting javadoc hovers instead of errors [message #648597 is a reply to message #648582] Thu, 13 January 2011 15:55 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
I just updated to the latest version of the Spring IDE plugin, but I didn't notice whether I was seeing this symptom before the update or not.

Providing the workspace would be impractical.
Re: Now getting javadoc hovers instead of errors [message #648650 is a reply to message #648597] Thu, 13 January 2011 19:37 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
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 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
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.
Re: Now getting javadoc hovers instead of errors [message #648862 is a reply to message #648684] Fri, 14 January 2011 18:42 Go to previous messageGo to next message
David M. Karr is currently offline David M. KarrFriend
Messages: 801
Registered: July 2009
Senior Member
So you believe this behavior is impacted by hovers in this list that aren't even checked? I note that nothing in this dialog says anything about what it means if an item in the list is checked.
Re: Now getting javadoc hovers instead of errors [message #648896 is a reply to message #648862] Sat, 15 January 2011 04:57 Go to previous messageGo to next message
Deepak Azad is currently offline Deepak AzadFriend
Messages: 543
Registered: July 2009
Senior Member
On 1/15/2011 12:12 AM, David M. Karr wrote:
> So you believe this behavior is impacted by hovers in this list that
> aren't even checked?
Combined hover does not look at the checked state of the items in the list.

I note that nothing in this dialog says anything
> about what it means if an item in the list is checked.
If an item is checked, it simply means that if the right modifier key is
pressed and the hover could be shown then it will be shown. Note that
you cannot assign same modifier keys to 2 hovers.

If you want to be able to specify what hovers are shown by the combined
hover, then you can probably open an enhancement request.
Re: Now getting javadoc hovers instead of errors [message #658606 is a reply to message #648896] Wed, 09 March 2011 08:59 Go to previous message
Markus Franz is currently offline Markus FranzFriend
Messages: 38
Registered: July 2009
Member
Had the same problem, found the source, alas no real solution (yet), besides removing the Groovy-Eclipse (or downgrading it...). See
http://jira.codehaus.org/browse/GRECLIPSE-953
Previous Topic:Looking for some leads on an eclipse project
Next Topic:looking plugin to edit a hierarchy formatted data in a text file
Goto Forum:
  


Current Time: Thu Apr 25 08:51:40 GMT 2024

Powered by FUDForum. Page generated in 0.07361 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top