简体   繁体   English

Eclipse:软件包浏览器未以平面结构显示软件包

[英]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.

相关问题 包浏览器未显示……包,在 Eclipse 中。 如何解决? - Package explorer not showing…packages, in Eclipse. How to fix it? Eclipse>软件包浏览器-前10个软件包 - Eclipse > Package Explorer - top 10 packages 在网页上显示项目结构和内容,例如Eclipse的Package Explorer - Showing project structure and contents on a web page, like Eclipse's package explorer Eclipse Package Explorer与物理文件夹结构不匹配 - Eclipse Package Explorer not matching physical folder structure Eclipse包浏览器项目结构失败 - Eclipse package explorer project structure failed 如何在 Eclipse 包资源管理器中查看分层包结构 - How to view hierarchical package structure in Eclipse package explorer 从Eclipse Package Explorer中丢失了我的Java软件包和项目 - Lost my java packages and project from eclipse package explorer 有没有办法在Eclipse Package Explorer视图中将颜色标签应用于包? - Is there a way to apply color labels to packages in the Eclipse Package Explorer view? Eclipse隐藏项目包,以便在包资源管理器中轻松导航 - Eclipse hiding project packages for easy navigation in package explorer 如何在 Eclipse 包资源管理器中更改修改后的文件/包的颜色? - How to change the color of modified files/packages in the Eclipse Package Explorer?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM