Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » VerticalRuler OverviewRuler Question
VerticalRuler OverviewRuler Question [message #197112] Wed, 18 February 2004 16:10 Go to next message
Eclipse UserFriend
Originally posted by: gte240u.prism.gatech.edu

I have a custom editor. Based on the model of the editor, I need to indicate
a mark on the
ruler(s) on the side; just like the red mark that is seen in the JavaEditor
when there is a
compile error. I need to be able to click this and display some text and/or
run an action.

What is the best/easiest way of doing this? What classes should I be looking
at? Is there
a simple plugin that I could look at to get a better idea?

Thanks.
Re: VerticalRuler OverviewRuler Question [message #197194 is a reply to message #197112] Wed, 18 February 2004 18:14 Go to previous message
Tom Hofmann is currently offline Tom HofmannFriend
Messages: 770
Registered: July 2009
Senior Member
Jai Kejriwal wrote:
> I have a custom editor. Based on the model of the editor, I need to indicate
> a mark on the
> ruler(s) on the side; just like the red mark that is seen in the JavaEditor
> when there is a
> compile error. I need to be able to click this and display some text and/or
> run an action.
>
> What is the best/easiest way of doing this? What classes should I be looking
> at? Is there
> a simple plugin that I could look at to get a better idea?

Is your editor a text editor? If yes, you can subclass
ExtendedTextEditor and you will get a vertical ruler, overview ruler and
such for free.

Have a look at VerticalRulerColumn and OverviewRuler to see how they are
done and what they do upon mouse events.

Most visual indications (what you see in the rulers) are based on
annotations - see Annotation and AnnotationModel for a start.

-tom
Previous Topic:Why Eclispe3.0 can not install new feature automaticlly?
Next Topic:Team: FTP Synchronize file exclusion
Goto Forum:
  


Current Time: Wed Aug 14 22:10:43 GMT 2024

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

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

Back to the top