与编辑器并排的MultiPageEditorPart [英] MultiPageEditorPart with editors side by side

查看:180
本文介绍了与编辑器并排的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).

这篇关于与编辑器并排的MultiPageEditorPart的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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