Question

Eclipse text editors has this nice vertical rulers at both sides where bookmarks and annotations are shown with little dots, so that you navigate real quick to the line. I've got to do something similar, but not with the text editor, - with some large list or a table. How would you go about it? Is there anything in eclipse RCP I can re-use? Or just take Canvas and start drawing stuff with SWT wizardry? I really don't want to reinvent the wheel, having a model would be real great. There must be something which already exists..

Can anyone give me a direction where to dig?

Was it helpful?

Solution

You can look how this zone (Ruler) is setup in the CompilationUnitEditor.

It is an IVerticalRuler (see JavaDoc, and one standard implementation), actually used by a SourceViewer: that last class actually set up the vertical ruler zones.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top