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 #44615] Wed, 04 February 2009 09:44 Go to next message
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
Re: Adding new markers [message #783280 is a reply to message #44615] Wed, 25 January 2012 12:11 Go to previous message
Rui Gameiro is currently offline Rui GameiroFriend
Messages: 4
Registered: September 2011
Junior Member
Hi, i have the same problem.

Have you found a solution to this problem? if yes please tell me how.

Thanks.
Rui.
Previous Topic:Run some JUnit tests and check coverage
Next Topic:Adding a jar to a plugin as "compile only"
Goto Forum:
  


Current Time: Sat Dec 21 14:49:13 GMT 2024

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

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

Back to the top