问题
I'm pretty new to Eclipse plugins and I want to create a VerticalRuler, I found this picture of Subeclipse which inspired me to add information to a specific code line.
Right now I have no Clue where I would start adding a column like that.
My first try was to create a column within my editor-plugin, but nothing happened. I'm happy about every hint that helps me start.
cheers
CompositeRuler ruler2;
ruler2= new CompositeRuler();
ruler2.addDecorator(0, new AnnotationRulerColumn(100));
回答1:
I'm not sure what you are trying to do but if you are creating a new editor, you can overwrite
the createVerticalRuler(...) method. There is also an extension point for ruler Columns. See here.
来源:https://stackoverflow.com/questions/10992863/creating-verticalruler-and-add-information