在Package Explorer视图中单击Eclipse之后,Eclipse现在仅在编辑器窗格中显示一个方法,如何重置为正常行为? [英] Eclipse now shows only a single method in an editor pane after clicking on the method in Package Explorer view, how can I reset to normal behavior?

查看:267
本文介绍了在Package Explorer视图中单击Eclipse之后,Eclipse现在仅在编辑器窗格中显示一个方法,如何重置为正常行为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Eclipse的Package Explorer(Helios版本)中,您可以深入到Java类并查看其方法和成员.直到最近,如果我在Package Explorer中单击一个方法名称,则整个类文件将打开(如果尚未打开),并且光标将位于我刚刚单击的方法上,但是整个类文件也将位于编辑器中窗格,然后我可以向上或向下滚动到类文件的任何其他部分.但是现在,当我单击某个方法时,会出现一个编辑器窗格,其中仅包含该方法的代码.如果已经打开了该类文件的编辑器窗格,则该类将被我在Package Explorer视图中单击的方法的代码所覆盖,并且我必须关闭该窗格并在其中单击顶级类文件名.为了查看整个文件的内容.非常烦人.

In the Package Explorer of Eclipse (version Helios) you can drill down into a Java class and see its methods and members listed. Until recently if I clicked on a method name in the Package Explorer then the entire class file would open (if not already opened) and the cursor would be at the method I just clicked on, but the entire class file would also be in the editor pane, and I could scroll up or down to any other part of the class file. Now however when I click on a method I get an editor pane which contains only the code for that method. If an editor pane for the class file was already opened then it gets overwritten with the code for just the method I clicked on in the Package Explorer view, and I have to close the pane and re-click on the top level class file name in order to see the entire file's contents. Very annoying.

我不确定是什么原因造成的,但是最近我在Eclipse中添加了Aptana插件,该插件似乎具有一些首选项/设置,因此我假定已经回到以前的状态就卸载了该插件. .不幸的是,上述问题仍然存在,还有其他一些小的烦恼,例如修改后的颜色等.

I'm not sure what caused this but recently I added the Aptana plugin to Eclipse which appears to have monkeyed with some of the preferences/settings so I uninstalled this plugin, assuming that I'd get back to where I was before. Unfortunately the above issue persists, as well as a few other minor annoyances such as modified colors, etc.

有人可以建议我如何恢复旧的默认Package Explorer方法的点击行为吗?也许可以通过某种方式返回到安装Aptana插件之前的设置?

Can anyone suggest how I'd go about getting the old default Package Explorer method click behavior back? Perhaps there's some way I can go back to the settings I had before I installed the Aptana plugin?

提前感谢您的帮助!

推荐答案

转到首选项"->"Java"->编辑器",然后取消选择仅显示所选的Java元素".

Go to Preferences -> Java -> Editor and deselect "Only show the selected Java Element".

这是一个隐藏的首选项.我曾经在完全不同的情况下发生过这种情况,这花了我几个小时才能找到答案.

It is a hidden preference. I once had this happen to me in an entirely different circumstance and it took me hours to find the answer.

这篇关于在Package Explorer视图中单击Eclipse之后,Eclipse现在仅在编辑器窗格中显示一个方法,如何重置为正常行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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