Package presentation in Java EE perspective in eclipse

前端 未结 5 536
感情败类
感情败类 2020-12-18 14:30

I have a problem when switching to my Java EE perspective in eclipse indigo.

In my Java perspective I have this layout:

相关标签:
5条回答
  • 2020-12-18 15:04

    These are my settings in eclipse 4.2 which result in the layout you want:

    - folder presentation: grouped
    - package presentation: flat
    
    0 讨论(0)
  • 2020-12-18 15:04

    You can also import your project by using "import existing maven projects" . It will then configure the folders to be flat.

    0 讨论(0)
  • 2020-12-18 15:10

    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.

    0 讨论(0)
  • 2020-12-18 15:15

    Package presentation can be found here :

    enter image description here

    0 讨论(0)
  • 2020-12-18 15:23

    You can switch this using the "Package Presentation -> Flat" from the drop down menu in the project explorer.

    Package Presentation Snap

    0 讨论(0)
提交回复
热议问题