How to add my own annotation column to the left ruler of editor [message #557069] |
Fri, 03 September 2010 22:47 |
Jeffery Yuan Messages: 27 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 13:11 |
Dani Megert Messages: 3802 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.
|
|
|
Powered by
FUDForum. Page generated in 0.03426 seconds