Package presentation in Java EE perspective in eclipse

前端 未结 5 541
感情败类
感情败类 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: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.

提交回复
热议问题