Skip to main content


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 22:47 Go to next message
Jeffery Yuan is currently offline Jeffery YuanFriend
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 Go to previous message
Dani Megert is currently offline Dani MegertFriend
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.
Previous Topic:Context menu in a wizard
Next Topic:Difference Between Job and Thread?
Goto Forum:
  


Current Time: Fri Mar 29 13:24:26 GMT 2024

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

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

Back to the top