How to make eclipse (Indigo) collapse empty (parent) packages?

What I want to do is just use eclipse explorer in a hierarchical view, but with an empty dropped package, so I don't need to open 5+ packages to find the first Java file.

I’m not even sure how I did it in previous versions, but I never had a problem with the search, first of all, it seems that this is not so. I have a feeling that somewhere there is a tick "smooth the hierarchy."

To clarify, I get the following:

com
  example
    etc
      file1.java

Instead

com.example.etc
  file1.java

I am using Eclipse Indigo (v. 3.7.1)

Requested settings screenshot

+5
source share
6 answers

, , , ( ) eclipse. .:\

+2

"" ( ), .

, . , , , ( VCS).

+6

, , , "", .

, Apple OS X Eclipse , .DS_STORE src/package/, .

.

+3
source

Click on the arrow at the top right “Package Explorer” and select “Package Presentation → Flat”

+1
source

Window - Settings - Java - Appearance - Shortened Package Names

And enter the following rule:

com.example.etc = {} CEE

+1
source

Try restarting Eclipse once in a while. I was unable to get it to work, and after restarting Eclipse it unexpectedly worked again.

0
source

All Articles