creating VerticalRuler and add Information

2019-02-20 18:22发布

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. diff of subeclipse 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条回答
倾城 Initia
2楼-- · 2019-02-20 18:56

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.

查看更多
登录 后发表回答