Eclipse 隐形编辑器

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/12206348/
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 18:54:05  来源:igfitidea点击:

Eclipse Invisible Editor

eclipse

提问by leech

I have eclipse Juno. I'm not sure how, but my editor in eclipse is now "invisible". By invisible i mean, the editor pane is not in the visible window. I'm not a novice in eclipse and i know you can minimize the editors or maximize a different panel - but this isn't the case. There isn't even a minimize/maximize button on this empty space where the editor should be.

我有日食朱诺。我不确定如何,但是我在 eclipse 中的编辑器现在“不可见”了。不可见我的意思是,编辑器窗格不在可见窗口中。我不是 Eclipse 的新手,我知道您可以最小化编辑器或最大化不同的面板 - 但事实并非如此。在编辑器所在的空白区域甚至没有最小化/最大化按钮。

However, the title bar shows the current file that is opened (but in the invisible editor and hence invisible). and my outline sidebar shows the file's outline.

但是,标题栏显示当前打开的文件(但在不可见的编辑器中,因此不可见)。我的大纲侧边栏显示了文件的大纲。

I think this might have happened when splitting editor panes (which i do a lot, love the side by side comparison), and also switching the perspective.

我认为这可能发生在拆分编辑器窗格(我经常这样做,喜欢并排比较)以及切换视角时。

Any ideas on how i can get the editor back in the visible window?

关于如何让编辑器回到可见窗口的任何想法?

enter image description here

在此处输入图片说明

Above is a screenshot of how it looks. At the time of the screen shot i had just recently clicked a file to open it, and it seems to have opened in the invisible editor.

上面是它的外观截图。在截屏的时候,我刚刚点击了一个文件来打开它,它似乎是在隐形编辑器中打开的。

回答by JPMagalhaes

I've tried all given solutions and none of them solved the problem. Only using Window->New Windowgave me a new fixed eclipse window.

我已经尝试了所有给定的解决方案,但没有一个解决了问题。只使用Window->New Window给了我一个新的固定 eclipse 窗口。

回答by E-Riz

Try Window> Reset Perspectiveto get things back to normal.

尝试Window> Reset Perspective使事情恢复正常。

回答by katalizator

I minimized sharedArea and after restore it was empty. Editors worked well (open, close, save etc.) but i could not see them. Closing allperspectives helped.

我最小化了 sharedArea,恢复后它是空的。编辑器运行良好(打开、关闭、保存等),但我看不到它们。关闭所有的观点是有帮助的。

回答by Julian A.

This happens to me sometimes when I try to split an editor group by dragging an editor tab. The only solution that worked for me was to close every single perspective in the application toolbar, then Window -> New Window.

当我尝试通过拖动编辑器选项卡来拆分编辑器组时,有时会发生这种情况。对我有用的唯一解决方案是关闭应用程序工具栏中的每个透视图,然后Window -> New Window.

回答by qualidafial

I've had this happen occasionally when splitting panes. Restarting Eclipse didn't work for me, nor did resetting the perspective.

我在拆分窗格时偶尔会发生这种情况。重新启动 Eclipse 对我不起作用,也没有重置透视图。

The solution I stumbled upon was to give the editor area focus (by clicking in the area where it should be, I suppose) and close files in the invisible editor with Ctrl+W until the editor reappears. You may notice the window title changes to follow the file in the hidden editor.

我偶然发现的解决方案是让编辑器区域成为焦点(通过单击它应该在的区域,我想)并使用 Ctrl+W 关闭不可见编辑器中的文件,直到编辑器重新出现。您可能会注意到窗口标题随着隐藏编辑器中的文件而变化。

回答by James Beninger

I had the same problem and simply stopping/restarting Eclipse fixed it.

我遇到了同样的问题,只需停止/重新启动 Eclipse 即可修复它。

回答by Jay Fogarty

I have the fix, when neither resetting the perspective or restarting eclipse helps: At the bottom of the File Menu, there is your recent file name that you are trying to get back. Click on that and it should return.

我有解决办法,当重置透视图或重新启动 eclipse 都没有帮助时:在文件菜单的底部,有您最近尝试取回的文件名。单击它,它应该返回。

回答by Pablo Baietti

Start eclipse with:

开始日食:

eclipse.exe -repair