Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在 Eclipse 插件中,我想跟踪 JavaEditor 的跟随链接事件,即我希望我的插件在开发人员按下控件并单击 java 元素时得到通知。
我已经获得了窗口打开事件,因此拥有IWorkbenchWindow打开的 JavaEditors 的对象。
IWorkbenchWindow
我还没有尝试过,但我相信你需要添加一个依赖项
org.eclipse.ui.workbench.texteditor
并使用扩展点
org.eclipse.ui.workbench.texteditor.hyperlinkDetectors
也许这个链接也会有所帮助:http ://help.eclipse.org/juno/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2Freference%2Fextension-points%2Forg_eclipse_ui_workbench_texteditor_hyperlinkDetectors.html