Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to add my own annotation column to the left ruler of editor
How to add my own annotation column to the left ruler of editor [message #557069] Fri, 03 September 2010 18:47 Go to next message
yuanyun.ken is currently offline yuanyun.ken
Messages: 25
Registered: July 2009
Junior Member
Hi, all great guys:

I created an editor, in each line, it includes prefix like cli> to indicate that currently we are opening a cli connection.
We want to show the prefix and let user able to configure and change it.

For now, I add this prefix in each line, but this would complicate our rcp application,
as I have to write my own handlers such as move to home, copy, cut, undo, redo and many other
things to ignore the added prefix.

So I am thinking to add this prefix to the left ruler or annotation column of the editor.

Can anybody help to tell me is this possible and how to implement it, if possible, please tell me how to do it in detail: )

Many thanks for any help.
Re: How to add my own annotation column to the left ruler of editor [message #559356 is a reply to message #557069] Thu, 16 September 2010 09:11 Go to previous message
Dani Megert is currently offline Dani Megert
Messages: 3801
Registered: July 2009
Senior Member
yuanyun.ken wrote:
> Hi, all great guys:
>
> I created an editor, in each line, it includes prefix like cli> to
> indicate that currently we are opening a cli connection.
> We want to show the prefix and let user able to configure and change it.
>
> For now, I add this prefix in each line, but this would complicate our
> rcp application,
> as I have to write my own handlers such as move to home, copy, cut,
> undo, redo and many other
> things to ignore the added prefix.
>
> So I am thinking to add this prefix to the left ruler or annotation
> column of the editor.
>
> Can anybody help to tell me is this possible and how to implement it,
> if possible, please tell me how to do it in detail: )
You could take a look at
org.eclipse.jface.text.source.LineNumberChangeRulerColumn.

Dani
>
> Many thanks for any help.
Previous Topic:Context menu in a wizard
Next Topic:Difference Between Job and Thread?
Goto Forum:
  


Current Time: Thu Aug 28 07:25:26 EDT 2014

Powered by FUDForum. Page generated in 0.02880 seconds