Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » annotation tooltips
annotation tooltips [message #328011] Mon, 12 May 2008 14:11 Go to next message
Eclipse UserFriend
Originally posted by: avikram.novell.com

Hi,

I've not able to add tooltips to the annotations that I add in my editors. I
have been able to add annotations both inline as well as in the ruler but
somehow tooltips are missing for both. I tried using both custom
annotations as well as org.eclipse.text.annotation.error. Both resulted in
the same behaviour (missing tooltips).

I tried finding out on the forum and it talked about marker tooltips where I
just need to define my marker as a text marker. But I assume the
org.eclipse.text.annotation.error is already a text annotation so for this
the tooltips should automatically come,isn't it?

Is there anything else I should look for?

Thanks for any replies.

--aditya
Re: annotation tooltips [message #328047 is a reply to message #328011] Tue, 13 May 2008 07:22 Go to previous messageGo to next message
Dani Megert is currently offline Dani MegertFriend
Messages: 3802
Registered: July 2009
Senior Member
aditya vikram wrote:
> Hi,
>
> I've not able to add tooltips to the annotations that I add in my editors. I
> have been able to add annotations both inline as well as in the ruler but
> somehow tooltips are missing for both. I tried using both custom
> annotations as well as org.eclipse.text.annotation.error. Both resulted in
> the same behaviour (missing tooltips).
>
> I tried finding out on the forum and it talked about marker tooltips where I
> just need to define my marker as a text marker. But I assume the
> org.eclipse.text.annotation.error is already a text annotation so for this
> the tooltips should automatically come,isn't it?
>
Yes, if everything is setup correctly. Are you talking about your own
editor or an existing one? If it is yours,
make sure you have a text hover configured
(org.eclipse.jface.text.source.SourceViewerConfiguration.get TextHover(ISourceViewer,
String)).

Dani
> Is there anything else I should look for?
>
> Thanks for any replies.
>
> --aditya
>
Re: annotation tooltips [message #328050 is a reply to message #328047] Tue, 13 May 2008 08:06 Go to previous message
Eclipse UserFriend
Originally posted by: avikram.novell.com

thanks for your response Daniel.

Daniel Megert wrote:

>>
> Yes, if everything is setup correctly. Are you talking about your own
> editor or an existing one? If it is yours,
> make sure you have a text hover configured
>
(org.eclipse.jface.text.source.SourceViewerConfiguration.get TextHover(ISourceViewer,
> String)).

I have my own editor setup. All the tooltips associated with other
annotations do come correctly with the tooltips, tooltips for custom
annotations are the only one missing. So I assume, the configurations are
fine for my editor.

I suspect something being wrong with my annotation specification, Here is
how the specification looks like,

<extension
point="org.eclipse.ui.editors.annotationTypes">
<type
name="com.novell.core.webtools.xmldtderror"
super="org.eclipse.ui.workbench.texteditor.text">
</type>
</extension>
<extension
point="org.eclipse.ui.editors.markerAnnotationSpecification ">
<specification
annotationType="com.novell.core.webtools.xmldtderror"
colorPreferenceKey="highlight.color"
colorPreferenceValue="255,0,0"
contributesToHeader="true"
highlightPreferenceKey="highlight"
highlightPreferenceValue="true"
icon="icons/aqua.gif"
includeOnPreferencePage="true"
label="XML error"
overviewRulerPreferenceKey="highlight.overview"
overviewRulerPreferenceValue="true"
presentationLayer="4"
showInNextPrevDropdownToolbarAction="true"
showInNextPrevDropdownToolbarActionKey="highlight.showNext"
symbolicIcon="error"
textPreferenceKey="highlight.text"
textPreferenceValue="true"
textStylePreferenceKey="highlight.textstyle"
textStylePreferenceValue="SQUIGGLES"
verticalRulerPreferenceKey="highlight.vertical"
verticalRulerPreferenceValue="true">
</specification>
</extension>


I tried using the org.eclipse.ui.workbench.texteditor.error annotation
itself, in this case the tooltip gets displayed but it gets superseded by
other annotations ( in my case it gets superseded by the content-assist
annotation), don't know why!

Thanks again for the help,
Aditya
Previous Topic:Jigsaw License Manager
Next Topic:Troubleshooting OSGi
Goto Forum:
  


Current Time: Sun Jul 07 08:40:07 GMT 2024

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

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

Back to the top