Eclipse RCP 应用程序中编辑器的(取消)对接
在 Eclipse RCP 应用程序中,您可以默认停靠/取消停靠视图。 但似乎你不能对编辑做同样的事情。
是否有机会将此类应用程序配置为(取消)停靠编辑器?
In an eclipse RCP application you can dock/undock views on default.
But it seems you can't do the same with editors.
Is there any chance to configure such an application to (un)dock editors?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
在Eclipse 3.x中这是不可能的,但是4.1肯定有这个功能(我刚刚尝试过)。您可以在这里获取它: http://download.eclipse.org/e4/sdk/
In Eclipse 3.x it is not possible, but 4.1 definitely has this feature (I just tried it). You can get it here: http://download.eclipse.org/e4/sdk/
恕我直言,这对于编辑器来说是不可能的,这是 Eclipse 编辑器的一个已知限制!
IMHO its not possible for Editors, its a known limitation of eclipse editors!
如果您希望能够并排查看编辑器,则有一些替代选项。
您可以将编辑器拖到现有编辑器的“一侧”,使 Eclipse 将工作台页面一分为二(或更多),这在 RCP 应用程序中也是本机支持的。
另一种选择是创建一个单独的工作台窗口(请参阅 Eclipse IDE 中的窗口 -> 新窗口)。完成后,您可以在窗口之间拖动编辑器。如果您使用多个显示器,此方法尤其有效。我猜测应该可以重用“新窗口”操作来在 RCP 应用程序中实现这一点。
“新”窗口功能可能会进行调整,使您看起来可以将编辑器“拖离工作台”,但我认为该解决方案将更加痛苦而不是有帮助。
据说 Eclipse 4.x 具有此功能,但计划要到 2012 年夏天才会发布。
使用 e4-project 插件也许可以,但我还没有测试过。
If you want the ability to view editors side by side there are a few alternative options.
You can drag an editor "to the side" of an existing editor, making eclipse split the workbench page in two (or more), this is natively supported in RCP apps as well.
Another option is to create a separate workbench window (see Window -> New Window in Eclipse IDE). Once that is done, you can drag the editors between the windows. This works especially well if you work with several monitors. I'm guessing it should be possible to reuse the "New Window" action to make this happen in an RCP app as well.
The "new" window feature might be tweaked to make it seem like you can just drag an editor "off workbench" but I think that solution will be more painful than helpful.
Eclipse 4.x is said to have this ability but it isn't planned to ship until summer 2012.
It may be possible using the e4-project plugins, but I haven't tested.