annotation tooltips [message #328011] |
Mon, 12 May 2008 10:11  |
Eclipse User |
|
|
|
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 #328050 is a reply to message #328047] |
Tue, 13 May 2008 04:06  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02903 seconds