Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Selective combined hover in Java IDE?
Selective combined hover in Java IDE? [message #804869] Thu, 23 February 2012 04:56 Go to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 2
Registered: February 2011
Junior Member
Hi,

Is there any way to set a priority list for the combined hover feature? For example, ideally I'd like it to work this way (with no hotkeys):

1. Is there a compilation error? If yes, display "Problem description"
2. Is there source available? If yes, display "Source"
3. Is there a Javadoc? If yes, display "Javadoc"

This order is important because Eclipse will always display the fully-qualified name of a symbol (function prototype, class name, etc) for a "Javadoc" hover. The default priority list is 1,3,2, which makes it impossible to get a "Source" hover without setting a hotkey since there is always a "Javodoc" hover available (even when there is no actual Javadoc!) which takes priority over the "Source" hover.

The description for combined hover says "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." This to me implies that there should be some way of changing the sequence listed in the above table, but I can't seem to accomplish that.

I'm using Indigo Service Release 1.

[Updated on: Thu, 23 February 2012 05:06]

Report message to a moderator

Re: Selective combined hover in Java IDE? [message #805069 is a reply to message #804869] Thu, 23 February 2012 09:49 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 23.02.2012 05:56, Missing name Mising name wrote:
> Hi,
>
> Is there any way to set a priority list for the combined hover feature?
No.

Dani
> For example, ideally I'd like it to work this way (with no hotkeys):
>
> 1. Is there a compilation error? If yes, display "Problem description"
> 2. Is there source available? If yes, display "Source"
> 3. Is there a Javadoc? If yes, display "Javadoc"
>
> This order is important because Eclipse will always display the
> fully-qualified name of a symbol (function prototype, class name, etc)
> for a "Javadoc" hover. The default priority list is 1,3,2, which makes
> it impossible to get a "Source" hover without setting a hotkey since
> there is always a "Javodoc" hover available (even when there is no
> actual Javadoc!) which takes priority over the "Source" hover. At
> least, this is how it works in practice.
>
> I'm using Indigo Service Release 1.
Re: Selective combined hover in Java IDE? [message #805407 is a reply to message #805069] Thu, 23 February 2012 18:24 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing nameFriend
Messages: 2
Registered: February 2011
Junior Member
Is there somewhere I can request this change, or can you point me to the right place in the source to do it myself?
Re: Selective combined hover in Java IDE? [message #805860 is a reply to message #805407] Fri, 24 February 2012 08:16 Go to previous message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
On 23.02.2012 19:24, Missing name Mising name wrote:
> Is there somewhere I can request this change, or can you point me to
> the right place in the source to do it myself?
We don't plan to change the combined hover, but you can implement your
own via the 'org.eclipse.jdt.ui.javaEditorTextHovers' extension point.

Dani
Previous Topic:HEEEEEEEEEELLLOOOOOOOO
Next Topic:Downloads
Goto Forum:
  


Current Time: Tue Apr 23 15:44:11 GMT 2024

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

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

Back to the top