creating VerticalRuler and add Information(创建 VerticalRuler 并添加信息)
问题描述
我是 Eclipse 插件的新手,我想创建一个 VerticalRuler,我发现这张 Subeclipse 的图片启发了我将信息添加到特定的代码行.现在我不知道从哪里开始添加这样的列.我的第一次尝试是在我的编辑器插件中创建一个列,但什么也没发生.我对每一个帮助我开始的提示感到高兴.干杯
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));
推荐答案
我不确定你要做什么,但如果你正在创建一个新的编辑器,你可以覆盖createVerticalRuler(...)
方法.标尺列还有一个扩展点.请参阅 这里.
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 并添加信息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:创建 VerticalRuler 并添加信息


- 将log4j 1.2配置转换为log4j 2配置 2022-01-01
- value & 是什么意思?0xff 在 Java 中做什么? 2022-01-01
- Safepoint+stats 日志,输出 JDK12 中没有 vmop 操作 2022-01-01
- 从 finally 块返回时 Java 的奇怪行为 2022-01-01
- C++ 和 Java 进程之间的共享内存 2022-01-01
- Java包名称中单词分隔符的约定是什么? 2022-01-01
- Spring Boot连接到使用仲裁器运行的MongoDB副本集 2022-01-01
- Jersey REST 客户端:发布多部分数据 2022-01-01
- Eclipse 插件更新错误日志在哪里? 2022-01-01
- 如何使用WebFilter实现授权头检查 2022-01-01