Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Custom marker icon ignored in problems view
Custom marker icon ignored in problems view [message #334817] Sun, 01 March 2009 15:29 Go to next message
Mário Guimarães is currently offline Mário GuimarãesFriend
Messages: 18
Registered: July 2009
Junior Member
Hello,

I've created a new kind of marker having a custom icon.

My icon appears in the editor's ruler when I create a marker,
but the "Problems" view shows a warning icon, and not my icon.

Why does not the "Problems" view show my custom icon?

Best Regards
Mário

PS: here is the contents of my custom marker

<extension
id="myplugin.mymarker"
name="My Problem"
point="org.eclipse.core.resources.markers">
<super
type="org.eclipse.core.resources.problemmarker">
</super>
<super
type="org.eclipse.core.resources.textmarker">
</super>
</extension>
<extension point="org.eclipse.ui.editors.markerAnnotationSpecification ">
<specification annotationType="myplugin.myAnnotation"
label="My Problem"
icon="images/my_prob.gif"
textPreferenceKey="warningIndication"
textPreferenceValue="true"
textStylePreferenceKey="warningTextStyle"
textStylePreferenceValue="PROBLEM_UNDERLINE"
overviewRulerPreferenceKey="warningIndicationInOverviewRuler "
overviewRulerPreferenceValue="true"
verticalRulerPreferenceKey="warningIndicationInVerticalRuler "
verticalRulerPreferenceValue="true"
highlightPreferenceKey="warningIndicationHighlighting"
highlightPreferenceValue="false"
colorPreferenceKey="warningIndicationColor"
colorPreferenceValue="244,200,45"
presentationLayer="5"
symbolicIcon="warning"
contributesToHeader="true"
showInNextPrevDropdownToolbarActionKey="showWarningInNextPrevDropdownToolbarAction "

showInNextPrevDropdownToolbarAction="true"
isGoToNextNavigationTargetKey="isWarningGoToNextNavigationTarget "
isGoToNextNavigationTarget="true"
isGoToPreviousNavigationTargetKey="isWarningGoToPreviousNavigationTarget "
isGoToPreviousNavigationTarget="true">
</specification>
</extension>

<extension point="org.eclipse.ui.editors.annotationTypes">
<type
markerSeverity="1"
markerType="myplugin.mymarker"
name="myplugin.myAnnotation"/>
</extension>
Re: Custom marker icon ignored in problems view [message #334820 is a reply to message #334817] Mon, 02 March 2009 11:02 Go to previous messageGo to next message
Hitesh  is currently offline Hitesh Friend
Messages: 19
Registered: July 2009
Junior Member
There annotations and markers. The problems view solely displays 'problem'
markers, and do not know of annotations and related features.

Icons used in the problems view are based on the severity of the
particular problem - this is likely to remain that way.

Since 3.4, there is a new view called Markers view that shows markers of
all kinds, it would make sense if this view used custom icons. Currently
there is no API for providing a custom icon to a marker, though there is a
request for such API. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=260909

Hitesh

Mário Guimarães wrote:

> Hello,

> I've created a new kind of marker having a custom icon.

> My icon appears in the editor's ruler when I create a marker,
> but the "Problems" view shows a warning icon, and not my icon.

> Why does not the "Problems" view show my custom icon?

> Best Regards
> Mário

> PS: here is the contents of my custom marker

> <extension
> id="myplugin.mymarker"
> name="My Problem"
> point="org.eclipse.core.resources.markers">
> <super
> type="org.eclipse.core.resources.problemmarker">
> </super>
> <super
> type="org.eclipse.core.resources.textmarker">
> </super>
> </extension>
> <extension point="org.eclipse.ui.editors.markerAnnotationSpecification ">
> <specification annotationType="myplugin.myAnnotation"
> label="My Problem"
> icon="images/my_prob.gif"
> textPreferenceKey="warningIndication"
> textPreferenceValue="true"
> textStylePreferenceKey="warningTextStyle"
> textStylePreferenceValue="PROBLEM_UNDERLINE"
> overviewRulerPreferenceKey="warningIndicationInOverviewRuler "
> overviewRulerPreferenceValue="true"
> verticalRulerPreferenceKey="warningIndicationInVerticalRuler "
> verticalRulerPreferenceValue="true"
> highlightPreferenceKey="warningIndicationHighlighting"
> highlightPreferenceValue="false"
> colorPreferenceKey="warningIndicationColor"
> colorPreferenceValue="244,200,45"
> presentationLayer="5"
> symbolicIcon="warning"
> contributesToHeader="true"
>
showInNextPrevDropdownToolbarActionKey="showWarningInNextPrevDropdownToolbarAction "

> showInNextPrevDropdownToolbarAction="true"
> isGoToNextNavigationTargetKey="isWarningGoToNextNavigationTarget "
> isGoToNextNavigationTarget="true"
> isGoToPreviousNavigationTargetKey="isWarningGoToPreviousNavigationTarget "
> isGoToPreviousNavigationTarget="true">
> </specification>
> </extension>

> <extension point="org.eclipse.ui.editors.annotationTypes">
> <type
> markerSeverity="1"
> markerType="myplugin.mymarker"
> name="myplugin.myAnnotation"/>
> </extension>
Re: Custom marker icon ignored in problems view [message #334822 is a reply to message #334817] Mon, 02 March 2009 11:02 Go to previous messageGo to next message
Hitesh  is currently offline Hitesh Friend
Messages: 19
Registered: July 2009
Junior Member
There are annotations and markers. The problems view solely displays
'problem' markers, and do not know of annotations and related features.

Icons used in the problems view are based on the severity of the
particular problem - this is likely to remain that way.

Since 3.4, there is a new view called Markers view that shows markers of
all kinds, it would make sense if this view used custom icons. Currently
there is no API for providing a custom icon to a marker, though there is a
request for such API. See:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=260909

Hitesh

Mário Guimarães wrote:

> Hello,

> I've created a new kind of marker having a custom icon.

> My icon appears in the editor's ruler when I create a marker,
> but the "Problems" view shows a warning icon, and not my icon.

> Why does not the "Problems" view show my custom icon?

> Best Regards
> Mário

> PS: here is the contents of my custom marker

> <extension
> id="myplugin.mymarker"
> name="My Problem"
> point="org.eclipse.core.resources.markers">
> <super
> type="org.eclipse.core.resources.problemmarker">
> </super>
> <super
> type="org.eclipse.core.resources.textmarker">
> </super>
> </extension>
> <extension point="org.eclipse.ui.editors.markerAnnotationSpecification ">
> <specification annotationType="myplugin.myAnnotation"
> label="My Problem"
> icon="images/my_prob.gif"
> textPreferenceKey="warningIndication"
> textPreferenceValue="true"
> textStylePreferenceKey="warningTextStyle"
> textStylePreferenceValue="PROBLEM_UNDERLINE"
> overviewRulerPreferenceKey="warningIndicationInOverviewRuler "
> overviewRulerPreferenceValue="true"
> verticalRulerPreferenceKey="warningIndicationInVerticalRuler "
> verticalRulerPreferenceValue="true"
> highlightPreferenceKey="warningIndicationHighlighting"
> highlightPreferenceValue="false"
> colorPreferenceKey="warningIndicationColor"
> colorPreferenceValue="244,200,45"
> presentationLayer="5"
> symbolicIcon="warning"
> contributesToHeader="true"
>
showInNextPrevDropdownToolbarActionKey="showWarningInNextPrevDropdownToolbarAction "

> showInNextPrevDropdownToolbarAction="true"
> isGoToNextNavigationTargetKey="isWarningGoToNextNavigationTarget "
> isGoToNextNavigationTarget="true"
> isGoToPreviousNavigationTargetKey="isWarningGoToPreviousNavigationTarget "
> isGoToPreviousNavigationTarget="true">
> </specification>
> </extension>

> <extension point="org.eclipse.ui.editors.annotationTypes">
> <type
> markerSeverity="1"
> markerType="myplugin.mymarker"
> name="myplugin.myAnnotation"/>
> </extension>
Re: Custom marker icon ignored in problems view [message #334824 is a reply to message #334822] Mon, 02 March 2009 12:34 Go to previous message
Mário Guimarães is currently offline Mário GuimarãesFriend
Messages: 18
Registered: July 2009
Junior Member
Hi Hitesh,

I've added my vote for that bug.
Hope this comes on next release ;-)

Thanks
Mário

Hitesh escreveu:
> There are annotations and markers. The problems view solely displays
> 'problem' markers, and do not know of annotations and related features.
>
> Icons used in the problems view are based on the severity of the
> particular problem - this is likely to remain that way.
> Since 3.4, there is a new view called Markers view that shows markers of
> all kinds, it would make sense if this view used custom icons. Currently
> there is no API for providing a custom icon to a marker, though there is
> a request for such API. See:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=260909
>
> Hitesh
> Mário Guimarães wrote:
>
>> Hello,
>
>> I've created a new kind of marker having a custom icon.
>
>> My icon appears in the editor's ruler when I create a marker,
>> but the "Problems" view shows a warning icon, and not my icon.
>
>> Why does not the "Problems" view show my custom icon?
>
>> Best Regards
>> Mário
>
>> PS: here is the contents of my custom marker
>
>> <extension
>> id="myplugin.mymarker"
>> name="My Problem"
>> point="org.eclipse.core.resources.markers">
>> <super
>> type="org.eclipse.core.resources.problemmarker">
>> </super>
>> <super
>> type="org.eclipse.core.resources.textmarker">
>> </super>
>> </extension>
>> <extension
>> point="org.eclipse.ui.editors.markerAnnotationSpecification ">
>> <specification annotationType="myplugin.myAnnotation"
>> label="My Problem"
>> icon="images/my_prob.gif"
>> textPreferenceKey="warningIndication"
>> textPreferenceValue="true"
>> textStylePreferenceKey="warningTextStyle"
>> textStylePreferenceValue="PROBLEM_UNDERLINE"
>> overviewRulerPreferenceKey="warningIndicationInOverviewRuler "
>> overviewRulerPreferenceValue="true"
>> verticalRulerPreferenceKey="warningIndicationInVerticalRuler "
>> verticalRulerPreferenceValue="true"
>> highlightPreferenceKey="warningIndicationHighlighting"
>> highlightPreferenceValue="false"
>> colorPreferenceKey="warningIndicationColor"
>> colorPreferenceValue="244,200,45"
>> presentationLayer="5"
>> symbolicIcon="warning"
>> contributesToHeader="true"
>>
> showInNextPrevDropdownToolbarActionKey="showWarningInNextPrevDropdownToolbarAction "
>
>> showInNextPrevDropdownToolbarAction="true"
>> isGoToNextNavigationTargetKey="isWarningGoToNextNavigationTarget "
>> isGoToNextNavigationTarget="true"
>> isGoToPreviousNavigationTargetKey="isWarningGoToPreviousNavigationTarget "
>> isGoToPreviousNavigationTarget="true">
>> </specification>
>> </extension>
>
>> <extension point="org.eclipse.ui.editors.annotationTypes">
>> <type
>> markerSeverity="1"
>> markerType="myplugin.mymarker"
>> name="myplugin.myAnnotation"/>
>> </extension>
>
>
Previous Topic:Junit testing command execution?
Next Topic:Plugin for struts/tiles
Goto Forum:
  


Current Time: Thu Apr 25 16:41:34 GMT 2024

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

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

Back to the top