使用 Eclipse 停靠分离视图

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/21096100/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 21:28:03  来源:igfitidea点击:

Docking a detached view with Eclipse

eclipseview

提问by wahub

When I drag a view outside of the Workbench window, the view becomes a detached view.

当我将一个视图拖到 Workbench 窗口之外时,该视图将变成一个分离的视图。

The Eclipse help says (Workbench User Guide -> Tasks -> Working with views and editors -> Detaching views and editors): "To restore the view to be shown inside of the Workbench window, drag the view tab into the Workbench window."

Eclipse 帮助说明(Workbench User Guide -> Tasks -> Working with views and editors -> Detaching views and editors):“要恢复在 Workbench 窗口内显示的视图,请将视图选项卡拖到 Workbench 窗口中。”

With my configuration (Windows 7; 2 screens; pushing the maximise button maximises Eclipse in one of the two screens) this does not work.

使用我的配置(Windows 7;2 个屏幕;按下最大化按钮可在两个屏幕之一中最大化 Eclipse)这不起作用。

I have to use "Windows -> Restore Perspective ..." to get the view back inside the Workbench.

我必须使用“Windows -> Restore Perspective ...”才能将视图恢复到工作台内。

Is there an other way for reattaching a detached view?

还有其他方法可以重新附加分离的视图吗?

回答by pixel

As per njol's answer above, once you have your tab detached (showing as floating outside of your Eclipse IDE), simply click on the tab (not on the title of detached tab window)and drag. Then you will see mouse cursor change showing you where you can drop it to attach the tab to IDE. enter image description here

根据上面 njol 的回答,一旦您的选项卡分离(显示为浮动在 Eclipse IDE 之外),只需单击选项卡(而不是分离的选项卡窗口的标题)并拖动。然后您将看到鼠标光标发生变化,显示您可以将其放置在何处以将选项卡附加到 IDE。 在此处输入图片说明

回答by brandizzi

You have to move each tab from the detached views window to the side of a tab in the main window. (The fact that it should be moved to the sideof another tab was a detail that I had problem to grasp.) I guess a GIF can help:

您必须将每个选项卡从分离的视图窗口移动到主窗口中选项卡的一侧。(应该将它移到另一个选项卡的一侧这一事实是我无法掌握的一个细节。)我想 GIF 可以提供帮助:

Dragging a tab to the right side of another tab in the main window

将选项卡拖到主窗口中另一个选项卡的右侧

Note the little green vertical line that appears besides the "Servers" tab — it indicates you've put the tab in the right place:

请注意出现在“服务器”选项卡旁边的绿色小垂直线 - 它表明您已将该选项卡放在正确的位置:

Little green vertical line

小绿竖线

* The red circle only appears when I am pressing the mouse button. It was added by an external program to highlight when the mouse is pressed, it will not appear to you.

*红色圆圈仅在我按下鼠标按钮时出现。它是由外部程序添加的,用于在按下鼠标时突出显示,您不会看到它。

回答by Kevin Nadsady

From @zvezda's comment above,

来自@zvezda 上面的评论,

"Windows -> Reset Perspective ..."

was the onlymethod that worked for me (using Mars on Fedora 22).

唯一对我有用的方法(在 Fedora 22 上使用 Mars)。