How to prevent Eclipse from showing the opened file in package explorer

假如想象 提交于 2019-12-03 05:35:57

问题


somehow I've ended up in a situation such that when I navigate through source files with Eclipse, the Eclipse always selects (and expands) the opened file with package explorer. With this I end up

  • losing my location on Package Explorer
  • Having my Package explorer expanded and pretty confusing.

With brief googling/exploring on the preferences I couldn't find this one..

Eclipse version is 3.4 if that happens to matter.

Thanks in advance, Touko


回答1:


Turn off the "Link with Editor" option in the Package Explorer toolbar.

(the left/right arrow icon, turned on here)


回答2:


Select a source file, right click on it, choose "Open with" and then "Java Editor". The Java Editor should be the default after that for all java files.



来源:https://stackoverflow.com/questions/797615/how-to-prevent-eclipse-from-showing-the-opened-file-in-package-explorer

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!