Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » [Repost] Ext. Pt. org.eclipse.ui.ide.markerImageProviders doesn't work
[Repost] Ext. Pt. org.eclipse.ui.ide.markerImageProviders doesn't work [message #199527] Sun, 22 February 2004 23:58 Go to next message
Eclipse UserFriend
Hi,

I have created my own marker and specified an icon for it.

The code below works perfectly fine under 3.0 M3 and M4:

<extension
id="mymarker"
name="My Own Marker"
point="org.eclipse.core.resources.markers">
<persistent
value="true">
</persistent>
<super
type="org.eclipse.core.resources.marker">
</super>
<super
type="org.eclipse.core.resources.taskmarker">
</super>
<attribute
name="key">
</attribute>
</extension>
<extension
point="org.eclipse.ui.markerImageProviders">
<imageprovider
markertype="myplugin.mymarker"
icon="icons/myIcon.gif"
id="mymarker.imageProvider">
</imageprovider>
</extension>

However, since M5, this extension point is changed to
org.eclipse.ui.ide.markerImageProviders. Since then, the mymaker icon
cannot be changed and the task marker is displayed on the editor ruler.

Does anybody know what the problem is?

Tim
Re: [Repost] Ext. Pt. org.eclipse.ui.ide.markerImageProviders doesn't work [message #221894 is a reply to message #199527] Mon, 05 April 2004 08:18 Go to previous message
Eclipse UserFriend
Hello,

I had the same problem. I had a look at what the Eclipse search plugin did
and added something like this to my plugin.xml, which made it work.

<extension
point="org.eclipse.ui.editors.markerAnnotationSpecification ">
<specification
annotationType="myplugin.myannotationtype"
markerType="myplugin.mymarker"
label="Advice"
icon="icons/myIcon.gif"
textPreferenceKey="myMarkerIndication"
textPreferenceValue="true"
presentationLayer="3">
</specification>
</extension>

For M8 it was different again:

<extension
point="org.eclipse.ui.editors.markerAnnotationSpecification ">
<specification
annotationType="myplugin.myannotationtype"
label="Advice"
icon="icons/myIcon.gif"
textPreferenceKey="myMarkerIndication"
textPreferenceValue="true"
presentationLayer="3">
</specification>
</extension>

<extension point="org.eclipse.ui.editors.annotationTypes">
<type
name="myplugin.myannotationtype"
markerType="myplugin.mymarker">
</type>
</extension>

Sian Whiting



"Tim" <tim.ho@csse.monash.edu.au> wrote in message
news:c1c19d$qa6$1@eclipse.org...
> Hi,
>
> I have created my own marker and specified an icon for it.
>
> The code below works perfectly fine under 3.0 M3 and M4:
>
> <extension
> id="mymarker"
> name="My Own Marker"
> point="org.eclipse.core.resources.markers">
> <persistent
> value="true">
> </persistent>
> <super
> type="org.eclipse.core.resources.marker">
> </super>
> <super
> type="org.eclipse.core.resources.taskmarker">
> </super>
> <attribute
> name="key">
> </attribute>
> </extension>
> <extension
> point="org.eclipse.ui.markerImageProviders">
> <imageprovider
> markertype="myplugin.mymarker"
> icon="icons/myIcon.gif"
> id="mymarker.imageProvider">
> </imageprovider>
> </extension>
>
> However, since M5, this extension point is changed to
> org.eclipse.ui.ide.markerImageProviders. Since then, the mymaker icon
> cannot be changed and the task marker is displayed on the editor ruler.
>
> Does anybody know what the problem is?
>
> Tim
>
Previous Topic:Default line termination sequence
Next Topic:question on TemplateStore.load()
Goto Forum:
  


Current Time: Sat Jun 21 12:33:34 EDT 2025

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

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

Back to the top