在 Eclipse Juno 中打开 java 文件时,编辑器似乎被最小化或隐藏
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/12669752/
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
When opening java files in Eclipse Juno, the editor seems to be minimised or hidden
提问by Mikael Johansson
I've installed Eclipse Juno SR1 and switched to my old workspace. When I open a java file in the editor, it seems to be minimized (or hidden). The titlebar shows the current file and the outline displays all methods.
我已经安装了 Eclipse Juno SR1 并切换到我的旧工作区。当我在编辑器中打开一个 java 文件时,它似乎被最小化(或隐藏)。标题栏显示当前文件,大纲显示所有方法。
This is much as described in the Eclipse Invisible Editor, however, the suggested solution 'Window > Reset Perspective' does not work for me.
这与Eclipse Invisible Editor中的描述非常相似,但是,建议的解决方案“Window > Reset Perspective”对我不起作用。
Any ideas on how I can get the editor back in the window?
关于如何让编辑器回到窗口中的任何想法?
I have the same problem with previous version of Eclipse Juno (not SR1).
我对以前版本的 Eclipse Juno(不是 SR1)有同样的问题。
回答by Brill Pappin
"Windows" -> "New Window" seems to bring back the invisible editor view. Then just close the old one and restart eclipse to make sure it "remembers" the configuration.
“Windows”->“新窗口”似乎带回了不可见的编辑器视图。然后只需关闭旧的并重新启动 eclipse 以确保它“记住”配置。
回答by asad raza
Try Window > Reset Perspective to get things back to normal.
尝试 Window > Reset Perspective 使事情恢复正常。
回答by Zeitnot
There are times when the editor or other views starts behaving erratic. For such situations do: "Windows" -> "New Window". Close the old one.
有时编辑器或其他视图开始表现不稳定。对于这种情况,请执行以下操作:“Windows”->“新窗口”。关闭旧的。
回答by mkm13
I had this problem in STS and then it contaminated my regular Eclipse in the same workspace. "New Window" helped, thanks!
我在 STS 中遇到了这个问题,然后它在同一工作区中污染了我的常规 Eclipse。“新窗口”有帮助,谢谢!
回答by Jorge E. Hernández
You don't need to restart eclipse.
您不需要重新启动 eclipse。
Just double-click your file inside the Package Explorerview. You will see it's name in the title bar, but it won't appear in the editor:
只需在Package Explorer视图中双击您的文件。您将在标题栏中看到它的名称,但它不会出现在编辑器中:
Now, just type Ctrl+ w(in case of Windows).
现在,只需键入Ctrl+ w(在 Windows 的情况下)。
Reopen your file, and it will appear in the editor:
重新打开您的文件,它将出现在编辑器中: