Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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 Jul 10 04:58:51 EDT 2025

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

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

Back to the top