How can I attach a PaintManager
to my TextEditor
?
For example, draw the background of cursor line with org.eclipse.jface.text.CursorLinePainter
.
How can I use org.eclipse.jface.text.PaintManager in subclass of TextEditor?
53 views Asked by MoHcmp At
1
Your editor's
TextViewer
orSourceViewer
provides the paint manager. You can access it using theITextViewerExtension2
interface of the viewer.For example this code is from
SourceViewerDecorationSupport
: