如何拆分Eclipse中的多页编辑器 [英] How to split multipages editor in Eclipse

查看:578
本文介绍了如何拆分Eclipse中的多页编辑器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Eclipse允许用户将编辑器区域分割为更多的空间,从而同时显示两个文件(或者如果使用Window-> New Editor复制文件,则为同一个文件)

Eclipse allow users to split the Editor Area into more one space, giving ability to display two files at the same time ( or the same file if you duplicate it using Window->New Editor)

有没有办法将编辑器窗口本身分割成多个编辑器的多个页面?

例如

假设您正在打开plugin.xml文件,您想要查看扩展选项卡/页面旁边的plugin.xml选项卡/页面。

Is there anyway to split the editor window itself into multiple areas for editors with multiple pages ?
e.g.
Assume you are opening plugin.xml file, and you want to view "plugin.xml" tab/page next to "Extensions" tab/page.

困难的方法是:

_-打开所需的plugin.xml文件

_-从顶部工具栏中选择窗口 - >新编辑器

_-将编辑区分为两个区域
_-在一个编辑器中选择plugin.xml选项卡/页面,另一个扩展选项卡/页面eidtor。

The hard way is :
_- Open the desired plugin.xml file
_- From top toolbar, select Window->New Editor
_- Split the editor area into two areas _- Select "plugin.xml" tab/page in one editor, and "Extension" tab/page in the other eidtor.

我想拖动标签/页面来分割,就像我们为不同的编辑器一样。

如果Eclipse没有提供,是不是

I would like to drag the tab/page to split just like we do for different editor.
If Eclipse does not provide that, Is it doable in custom editor , if Yes then How?

谢谢

推荐答案

不,你不能用多页编辑器这样做。这些编辑者使用 CTabFolder 控件显示页面,此控件只支持一次显示一页。

No you can't do this with the multipage editors. These editors use the CTabFolder control to show the pages and this control only supports showing one page at a time.

不确定您的意思是由自定义编辑器。您可以为每个页面编写一个单独的编辑器,以便您可以单独打开这些编辑器,这将允许拆分。但是这将是一个巨大的工作量。

Not sure what you mean by a custom editor. You could write a separate editor for each page so that you could then open these editors separately, which would allow the split. However this would be a huge amount of work.

这篇关于如何拆分Eclipse中的多页编辑器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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