Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Show custom marker in custom ruler column(UI part of plugin development, using existing editor and custom column for markers)
Show custom marker in custom ruler column [message #1058903] Wed, 15 May 2013 16:23
Marko Gašparič is currently offline Marko GašparičFriend
Messages: 10
Registered: May 2013
Location: Free University of Bolzan...
Junior Member
I posted this question on stackoverflow 3 weeks ago, but haven't received a reply yet. I guess it's way too specific and too hard. I hope I will have more luck here.

So the thing is:

I have my marker:

<extension point="org.eclipse.core.resources.markers"
    id="it.unibz.rsse.ui.marker.comment" 
    name="RS comment">
    <super type="org.eclipse.core.resources.marker"/>
    <persistent value="false"/>
</extension>
<extension point="org.eclipse.ui.editors.annotationTypes">
    <type
         markerType="it.unibz.rsse.ui.marker.comment"
         name="it.unibz.rsse.ui.marker.comment">
    </type>
</extension>
<extension point="org.eclipse.ui.editors.markerAnnotationSpecification">
    <specification
        annotationType="it.unibz.rsse.ui.marker.comment"
        ...
    </specification>
</extension>


And I have my ruler column:

<extension
    point="org.eclipse.ui.workbench.texteditor.rulerColumns">
    <column
        class="it.unibz.rsse.ui.EditorRuler"
        enabled="true"
        global="true"
        id="it.unibz.rsse.ui.EditorRuler"
        includeInMenu="false"
        name="RS">
        <placement
            gravity="0.0">
        </placement>
        <targetClass
           class="org.eclipse.ui.part.EditorPart">
        </targetClass>
    </column>
</extension>


And

public class EditorRuler implements IContributedRulerColumn {

private ITextEditor editor;
private RulerColumnDescriptor descriptor;
private AbstractRulerColumn rulerColumn;

public EditorRuler() {
    rulerColumn = new AbstractRulerColumn() {
        @Override
        protected Color computeBackground(int line) {
            return new Color(null, 255, 248, 220);
        }
    };
}


//... Overriden methods }


How can I make sure that when I create (my custom) marker and attach it to the document it will be presented on (my custom) column? At the moment it is on the standard column.
Previous Topic:Plugin B depends on Plugin A Export Fails
Next Topic:"external:" Bundle-ClassPath and PDE UI
Goto Forum:
  


Current Time: Tue Apr 16 18:16:19 GMT 2024

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

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

Back to the top