Open file with other editor with toolbar button - RCP

爱⌒轻易说出口 提交于 2019-12-24 07:23:09

问题


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


回答1:


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



来源:https://stackoverflow.com/questions/12846147/open-file-with-other-editor-with-toolbar-button-rcp

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!