[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [pde-dev] How to Annotation for ProblemMarkers
|
This is a question for platform-ui/workbench, not PDE. I would suggest to
post it on the platform newsgroup.
Darin
Ram Mohan <ram.mohan@xxxxxxxxxxxxxxx>
Sent by: pde-dev-bounces@xxxxxxxxxxx
03/13/2009 01:47 AM
Please respond to
"Eclipse PDE general developers list." <pde-dev@xxxxxxxxxxx>
To
pde-dev@xxxxxxxxxxx
cc
Subject
[pde-dev] How to Annotation for ProblemMarkers
Hi,
I am developing an editor for a new language.
I am able to mark the errors on the vertical ruler properly but i wasn't
able to annotate them(when mose moves over these markers) with error
messages.
I have added both extensions "annotationTypes and
markerAnnotationSpecification" and mapped them to markertype.
But, I couldn't see any annotation when i move the cursor over the error
marker.
I couldn't find any example and tutorial on how annotations can be added
for markers.
It appears to me that i need to add some MarkerListener to
SourceViewerConfiguration.
am i correct? Any pointers in this regard would be very helpful.
Regards,
Ram
A snippet of my editor plugin.xml
<extension
id="xmlProblem"
name="XML Problem"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.core.resources.problemmarker">
</super>
<persistent
value="true">
</persistent>
</extension>
<extension
point="org.eclipse.ui.editors.annotationTypes">
<type
markerSeverity="2"
markerType="TACT_Editor.xmlProblem"
name="TACT-Editor.TactError"
super="org.eclipse.ui.workbench.texteditor.error">
</type>
</extension>
<extension
point="org.eclipse.ui.editors.markerAnnotationSpecification">
<specification
annotationType="TACT-Editor.TactError">
</specification>
</extension>
_______________________________________________
pde-dev mailing list
pde-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/pde-dev