creating VerticalRuler and add Information

为君一笑 提交于 2019-12-01 12:45:32

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!