5

I've looked over Eclipse many many times, and cannot find this button! I had to use this and deal with this problem for 2 weeks now; it's getting really really annoying having to re-open the file cause i wanted to find the declaration line.

Please please please help.

Here's a picture:

(large version)

4

3 回答 3

12

自定义透视:

  1. 单击窗口»自定义透视图...
  2. 展开编辑器表示
  3. 单击仅显示所选元素的来源

工具栏图标

于 2012-05-04T19:13:08.593 回答
1

如果您完全禁用该功能并希望将其取回, Moritz Petersen回答将很有帮助,但选项本身(如果可用)位于:

Window -> Preferences

接着:

Java -> Editor -> [ ] Only show the selected Java element

个人提示:我将此选项绑定到键盘快捷键,以便我可以按需启用和禁用它。专注于一项任务非常实用,但当您想回到全班视图时确实有点烦人。

于 2012-11-05T16:30:50.347 回答
0

也许Eclipse中有一个错误。当我从“自定义透视图...”菜单中取消选择“工具栏可见性”选项卡中的所有编辑器演示按钮时,我得到了“仅显示选定元素”按钮。--> OK 之后我再次选择了按钮。

于 2013-11-25T10:18:07.750 回答