Community
Participate
Working Groups
From bug 25793: Provide an abstract base class for contributable rulers. It should create and manage a canvas, scrolling, repainting, etc. Implementations would get the following hooks: - getText(int modelLine) - must return the text for a given model (IDocument) line - getBackgroundColor(int modelLine) - returns the background color for a given line - paintLine(GC, int modelLine) - paints a single model line - default implementations uses getColor(int) and getText(int) to draw text and background colors. - paintLines(GC, ILineRange visibleLines) - implements painting of the visible model lines. Default implementation calls paintLine(GC, int) for every model line - invalidation methods, so that an implementation can trigger redrawing of a certain line range. - setWidth(int), setFont(Font)
Tom, this is already in M1, isn't it?
(In reply to comment #1) > Tom, this is already in M1, isn't it? Yes, fixed > 20060807 See org.eclipse.ui.texteditor.rulers.AbstractRulerColumn.
Verified that it is in drop I20060809-1200.
Question: Should org.eclipse.ui.workbench.texteditor.rulerColumns default to this new AbstractRulerColumn? Currently the extension point wants to create a class derived from org.eclipse.ui.texteditor.rulers.RulerColumn. I'm using I20060810-1230.
No, it's correct the way it is now but the names are misleading. I filed bug 155424 for that.