[英]Eclipse: Package explorer not showing packages in flat structure
Please see the image above. 请参见上图。 Why is eclipse not showing packages in the 'flat' structure as opposed to the 'hierarchical' structure?
为什么eclipse不能以“扁平”结构而不是“分层”结构显示软件包?
Make sure that your project of type Java or J2EE. 确保您的项目类型为Java或J2EE。 As packages are related to Java specific projects only and not related to other types of projects, say C++, you won't see packages in flat structure if your project is not of type Java.
由于软件包仅与Java特定项目相关,而与其他类型的项目无关,例如C ++,因此,如果您的项目不是Java类型,则不会看到扁平结构的软件包。
I just realized what happened. 我才意识到发生了什么事。
It is because the project is NOT a Java project. 这是因为该项目不是Java项目。 Since packages are specific to Java, Eclipse does not show the packages in the flat structure in this case.
由于软件包特定于Java,因此Eclipse在这种情况下不会以扁平结构显示软件包。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.