实施“标记发生"在新的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