与编辑器并排的MultiPageEditorPart
我有一个带有自定义MultiPageEditorPart的rcp项目,该项目包含两个编辑器页面.我希望能够并排展示它们,有没有办法做到这一点?我无法在Internet上找到解决方案.
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.
我尝试了窗口"->新窗口"或窗口"->编辑器"->克隆",并用MultiPageEditorPart并排打开了一个文件,但问题是如果我在一个位置切换到页面编辑器,它将自动切换到另一个页面编辑器.
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.
我想要的是将MultiPageEditorPart的两个页面并行放置,这样我就可以在一个页面中进行编辑,而在另一个页面中看到一些更改.
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.
提前谢谢!
否,MultiPageEditorPart
不支持此功能.
它使用单个CTabFolder
来包含所有页面,这不支持一次显示多个标签.
It uses a single CTabFolder
to contain all the pages, this doesn't support showing multiple tabs at once.
根据页面的外观,您可能可以在单个页面上使用具有多个部分的FormEditor
(例如MANIFEST.MF/plugin.xml编辑器中的多个页面).
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).