[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-dev] Icons for custom markers

Hi Gayan,

Long time ago I created a marker annotation similar to yours, which works fine.
The key difference seems to be:
- verticalRulerPreferenceValue="true"


If that doesn't help, some other differences to experiment with:
- contributesToHeader="true"
- presentationLayer="9"

HTH,
Stephan

On 21.07.19 12:35, Gayan Perera wrote:
I'm trying to implement a new custom marker with following configuration

    <extension
          id="gap.eclipse.jdt.markers.recursive"
          name="Method Recursion"
          point="org.eclipse.core.resources.markers">
       <super
             type="org.eclipse.core.resources.textmarker">
       </super>

    </extension>
    <extension
          point="org.eclipse.ui.editors.annotationTypes">
       <type
             markerType="gap.eclipse.jdt.markers.recursive"
             name="gap.eclipse.jdt.annotation.recursive">
       </type>
    </extension>
    <extension
          point="org.eclipse.ui.editors.markerAnnotationSpecification">
       <specification
             annotationType="gap.eclipse.jdt.annotation.recursive"
             colorPreferenceKey="gap.eclipse.jdt.annotation.recursive.color"
             colorPreferenceValue="50,6,62"
             contributesToHeader="false"
             highlightPreferenceKey="gap.eclipse.jdt.annotation.recursive.highlight"
             highlightPreferenceValue="true"
             icon="icons/view16/recursion.png"
             isGoToNextNavigationTarget="false"
             label="Recursion"
             overviewRulerPreferenceKey="gap.eclipse.jdt.annotation.recursive.overviewruler"
             overviewRulerPreferenceValue="true"
             presentationLayer="0"
             showInNextPrevDropdownToolbarAction="false"
             textPreferenceKey="gap.eclipse.jdt.annotation.recursive.text"
             textPreferenceValue="true"
             textStylePreferenceKey="gap.eclipse.jdt.annotation.recursive.textStyle"
             verticalRulerPreferenceKey="gap.eclipse.jdt.annotation.recursive.verticalruler"
             verticalRulerPreferenceValue="false">
       </specification>
    </extension>

The highlighting works fine according to the specification. But the
icon is not shown in the vertical ruler. But the icon seems to be
loading fine since it is shown in the preference page for
TextEditor/Annotations.

I'm i missing anything here ?

Best regards,
Gayan.
_______________________________________________
jdt-dev mailing list
jdt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/jdt-dev