Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Adding new markers
Adding new markers [message #591278] Wed, 04 February 2009 09:44
hadas is currently offline hadasFriend
Messages: 7
Registered: July 2009
Junior Member
Hello everyone,
I'm a student and as a part of the yearly project I'm developing eclipse
plug-in.
I've encountered a weird problem and trying to fix it for 2 days now:
I've added 3 new types of markers in the plugin.xml. For every marker I
added annotationTypes and for every annotaionType I've added
markerAnnotationSpecification. My purpose is to color background lines.
In every markerAnnotationSpecification I've put different icons and
different colorPreferenceValue.
The weird thing is this: when creating the markers everything is fine and
even the icons are shown (different icon for every marker) but the
background color of the lines is the same for every markers. I've noticed
that the last markerAnnotationSpecification colorPreferenceValue is taken
every time.When I changed the order of the markerAnnotationSpecification
in the plugin.xml, the color changed to the last one.
I don't know what to do? Can't I add more then one (I don't think so...)
Can I control the markerAnnotationSpecification.colorPreferenceValue
programmatically? If so, How?

I'm adding my code - maybe you would see what I don't see:

<extension id="BatonPassing.diff_marker_b"
name="SiteBDiffMarker"
point="org.eclipse.core.resources.markers">
<super type="org.eclipse.core.resources.textmarker"/>
<persistent value="true"/>
</extension>

<extension
point="org.eclipse.ui.editors.annotationTypes">
<type
name="diffAnnotationB"
super="org.eclipse.ui.workbench.texteditor.info"
markerType="BatonPassing.diff_marker_b">
<!--markerSeverity="0"-->
</type>
</extension>

<extension
point="org.eclipse.ui.editors.markerAnnotationSpecification ">
<specification
icon = "icons/il.gif"
annotationType="diffAnnotationB"
verticalRulerPreferenceKey="highlight.rulers.vertical"
textPreferenceKey="highlight.text"
colorPreferenceKey="highlight.color"
highlightPreferenceKey="highlight.background"
textPreferenceValue="true"
textStylePreferenceValue="BOX"
overviewRulerPreferenceKey="highlight.rulers.overview"
presentationLayer="4"
highlightPreferenceValue="true"
label="DiffSiteB"
symbolicIcon="warning"
colorPreferenceValue="255,0,0"
verticalRulerPreferenceValue="true"
overviewRulerPreferenceValue="true"
textStylePreferenceKey="highlight.text.style" >
</specification >
</extension>

Every marker code is the same but the id's, names, colorPreferenceValue
are not.


Please help me. Thank you very very much
Hadas
Previous Topic:Imports can't resolved after eclipse restart
Next Topic:Target Definition and deployed plugins = class path problem in build.xml
Goto Forum:
  


Current Time: Tue Mar 19 08:45:55 GMT 2024

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

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

Back to the top