MultiPageEditorPart with editors side by side

被刻印的时光 ゝ 提交于 2019-12-24 07:35:32

问题


I have a rcp project with a custom MultiPageEditorPart which contains two editor pages. I would want to be able to show them side by side, is there a way to do this? I couldn't find a solution over the Internet.

I tried Window -> New Window or Window -> Editor -> Clone and I get a file opened with my MultiPageEditorPart twice side by side but the problem is if I switch in one place to a page editor it automatically switches to the same page editor in the other.

What I want is to have both pages of the MultiPageEditorPart in parallel so I can edit in one and see some changes in the other.

Thank in advance!


回答1:


No, MultiPageEditorPart does not support this.

It uses a single CTabFolder to contain all the pages, this doesn't support showing multiple tabs at once.

Depending on what your pages are like you might be able to use a FormEditor with multiple sections on a single page (like several pages on the MANIFEST.MF / plugin.xml editor).



来源:https://stackoverflow.com/questions/38220729/multipageeditorpart-with-editors-side-by-side

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