Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Importance of JavaEditorTextHovers
Importance of JavaEditorTextHovers [message #199292] Wed, 23 March 2005 12:05 Go to next message
Eclipse UserFriend
Hi,

I provided an annotation hover for my plugin using the
org.eclipse.jdt.ui.javaEditorTextHovers extension point.
The hover works so far, but the problem is that my hover is used before
all other hovers.
For instance if a region in the editor has a JavaProblem-Annotation
because of a compile error and my annotation is present in the same
region, only my hover is displayed and not the java problem hover.

The problem seams to be the best match hover which seems to get the hover
extension in no particular order and uses the first hover (which is mine
for some reason).

Any idea how I make my hover less important than the java problem hover?

Regards,
Lars
Re: Importance of JavaEditorTextHovers [message #199589 is a reply to message #199292] Tue, 29 March 2005 03:04 Go to previous message
Eclipse UserFriend
The first hover returning a non-null and non-empty string is taken in
BestMatchHover.getHoverInfo. So, besides returning null, there is
nothing you can do.

Justifies an enhancement request against jdt-text IMO.

-tom

Lars Ködderitzsch wrote:
> Hi,
>
> I provided an annotation hover for my plugin using the
> org.eclipse.jdt.ui.javaEditorTextHovers extension point.
> The hover works so far, but the problem is that my hover is used before
> all other hovers.
> For instance if a region in the editor has a JavaProblem-Annotation
> because of a compile error and my annotation is present in the same
> region, only my hover is displayed and not the java problem hover.
>
> The problem seams to be the best match hover which seems to get the
> hover extension in no particular order and uses the first hover (which
> is mine for some reason).
>
> Any idea how I make my hover less important than the java problem hover?
>
> Regards,
> Lars
>
Previous Topic:vi or emacs plugin
Next Topic:Add method to interface?
Goto Forum:
  


Current Time: Sun Nov 02 10:17:44 EST 2025

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

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

Back to the top