使用工具栏按钮使用其他编辑器打开文件-RCP [英] Open file with other editor with toolbar button - RCP

查看:82
本文介绍了使用工具栏按钮使用其他编辑器打开文件-RCP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 rcp 应用程序,在两个不同的插件中有两个编辑器(扩展了Editorpart),我想创建一个工具栏按钮以在编辑器/插件之间切换同一文件。



有可能吗?



考虑到
Alex

解决方案

当然,只需获取活动的工作台页面并调用 IWorkbenchPage.openEditor(input,editorId) p>

I have an rcp application with two editors (extending the Editorpart) in two different plugins, and i want create a toolbar-button to switch betwen editor/plugins with same file.

Is that possible?

regards Alex

解决方案

Of course, just get the active workbench page and call IWorkbenchPage.openEditor(input, editorId).

这篇关于使用工具栏按钮使用其他编辑器打开文件-RCP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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