Building a custom text editor with line numbers [message #332371] |
Mon, 20 October 2008 16:14  |
Eclipse User |
|
|
|
Is the IAnnotationPresentation interface the correct place to add displaying
line numbers to a customized text editor? If not what is the correct
interface to use, and is there an example anywhere
thanks,drew
|
|
|
Re: Building a custom text editor with line numbers [message #332378 is a reply to message #332371] |
Mon, 20 October 2008 16:56  |
Eclipse User |
|
|
|
protected IVerticalRuler createVerticalRuler() {
CompositeRuler theRuler = new CompositeRuler();
LineNumberRulerColumn lc = new LineNumberRulerColumn();
theRuler.addDecorator(0, lc);
return theRuler;
}
"drew" <drew@acm.org> wrote in message
news:gdiap4$pvb$1@build.eclipse.org...
> Is the IAnnotationPresentation interface the correct place to add
> displaying line numbers to a customized text editor? If not what is the
> correct interface to use, and is there an example anywhere
> thanks,drew
>
|
|
|
Powered by
FUDForum. Page generated in 0.03450 seconds