Custom marker icon ignored in problems view [message #334817] |
Sun, 01 March 2009 10:29  |
Eclipse User |
|
|
|
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 06:02   |
Eclipse User |
|
|
|
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 06:02   |
Eclipse User |
|
|
|
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 07:34  |
Eclipse User |
|
|
|
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>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.26829 seconds