单击 Package Explorer 视图中的方法后,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?

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

问题描述

在 Eclipse(Helios 版)的 Package Explorer 中,您可以深入查看 Java 类并查看列出的方法和成员.直到最近,如果我在 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.

我不确定是什么原因造成的,但最近我将 Aptana 插件添加到 Eclipse 中,该插件似乎与某些首选项/设置发生了冲突,所以我卸载了这个插件,假设我会回到之前的位置.不幸的是,上述问题仍然存在,以及其他一些小问题,例如修改颜色等.

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.

谁能建议我如何恢复旧的默认包资源管理器方法单击行为?也许有什么方法可以让我回到安装 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?

预先感谢您的帮助!

推荐答案

转到 Preferences -> Java -> Editor 并取消选择只显示选定的 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 现在仅在编辑器窗格中显示一个方法,如何重置为正常行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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