实施“标记发生"在新的Eclipse编辑器中 [英] Implement "Mark Occurrences" in new Eclipse editor

查看:84
本文介绍了实施“标记发生"在新的Eclipse编辑器中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个实现新编辑器的eclipse插件.我想实现标记出现",其中,当光标位于一个变量上时,在打开的编辑器中所有出现的事件都将突出显示.有办法实现吗? 谢谢!

I am working on an eclipse plugin that implements a new editor. I would like to implement "Mark Occurences" wherein when the cursor is on one variable, all its occurances in the open editor are highlighted. Is there a way to implement this? Thanks!

推荐答案

您需要实现自己的Annotations并使用SourceViewer显示它们.

You need to implement your own Annotations and display them using your SourceViewer.

也许可以在这里开始阅读: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/editors_annotations.htm

Maybe start reading about this here: http://help.eclipse.org/helios/index.jsp?topic=/org.eclipse.platform.doc.isv/guide/editors_annotations.htm

这篇关于实施“标记发生"在新的Eclipse编辑器中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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