Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Building a custom text editor with line numbers
Building a custom text editor with line numbers [message #332371] Mon, 20 October 2008 16:14 Go to next message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
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 Go to previous message
drew frantz is currently offline drew frantzFriend
Messages: 340
Registered: July 2009
Senior Member
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
>
Previous Topic:Re: JFace Table Viewer Editor
Next Topic:Target Platform not working when restart eclipse
Goto Forum:
  


Current Time: Sun Oct 20 05:15:58 GMT 2024

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

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

Back to the top