I have a problem when switching to my Java EE perspective in eclipse indigo.
In my Java perspective I have this layout:
These are my settings in eclipse 4.2 which result in the layout you want:
- folder presentation: grouped
- package presentation: flat
You can also import your project by using "import existing maven projects" . It will then configure the folders to be flat.
The above answers do not really solve the real problem that most noobs experience in Eclipse. So I thought I would add an answer to this question since the questioner resolved to reinstalling eclipse which is not necessary nor a viable solution. The real issue is that when you created or rather imported this project, you picked the option to create a Project
in eclipse, not a Java Project
. If you pick Project
, it creates it as a filesystem looking directory structure similar to what you see in windows explorer. To fix this, just re-import your project from the workspace as a "Java Project" and you can change the package structure as flat or hierarchical as per your viewing pleasure.. Hope this helps.
Package presentation can be found here :
You can switch this using the "Package Presentation -> Flat" from the drop down menu in the project explorer.