创建VerticalRuler并添加信息 [英] creating VerticalRuler and add Information

查看:232
本文介绍了创建VerticalRuler并添加信息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我很喜欢Eclipse插件,我想创建一个VerticalRuler,我发现这个Subeclipse的图片,这激励了我将信息添加到特定的代码行。

现在我没有线索我将开始添加列像那样。
我的第一个尝试是在我的编辑器插件中创建一个列,但没有发生任何事情。我很乐意帮助我开始的每一个提示。
cheers

  CompositeRuler ruler2; 
ruler2 = new CompositeRuler();
ruler2.addDecorator(0,new AnnotationRulerColumn(100));


解决方案

我不知道你在做什么但是如果您正在创建一个新的编辑器,您可以覆盖
code> createVerticalRuler(...)方法。标尺列也有一个扩展点。请参阅这里


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));

解决方案

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.

这篇关于创建VerticalRuler并添加信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆