creating VerticalRuler and add Information

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. subseclipse的差异 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));

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.

链接地址: http://www.djcxy.com/p/63354.html

上一篇: Eclipse中的JavaScript编辑器

下一篇: 创建VerticalRuler并添加信息