32

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

Touko
  • 11,359
  • 16
  • 75
  • 105

2 Answers2

95

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

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

Ilmari Karonen
  • 49,047
  • 9
  • 93
  • 153
OtherDevOpsGene
  • 7,302
  • 2
  • 31
  • 46
0

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.

kgiannakakis
  • 103,016
  • 27
  • 158
  • 194