| Importance of JavaEditorTextHovers [message #199292] |
Wed, 23 March 2005 12:05  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.02640 seconds