如何在 Eclipse 包资源管理器中查看分层包结构 [英] How to view hierarchical package structure in Eclipse package explorer
问题描述
好的,这就是我想要的:在 Eclipse 包资源管理器中,我看到以下内容:(点表示可用于展开文件夹的可点击箭头)
- 项目
- 源文件夹
- 包装
- 类
- Package.SubPackage
- Foo
- Bar
- Package.OtherSubPackage
- Package.OtherSubPackage.VerySubPackage
- OtherPackage
- Foobar
- OtherPackage.SubPackage
- 巴兹
- 包装
- 源文件夹
长话短说,我想在一个源文件夹(和几个源文件夹,所以制作更多不能解决问题)中有很多包,每个包都有很多子包——所以大约有几百个包每个源文件夹——十到二十个包,每个包有十五个子包.因此,我希望层次结构如下所示:
- 项目
- 源文件夹
- 包装
- 类
- Package.SubPackage
- 噗
- Bar
- Package.OtherSubPackage
- Package.OtherSubPackage.VerySubPackage
- Package.SubPackage
- OtherPackage
- Foobar
- OtherPackage.SubPackage
- 巴兹
- OtherPackage.SubPackage
- 包装
- 源文件夹
这样我就可以打开或关闭一个包并查看子包列表,而不是将包和子包都在层次结构中的同一级别——这再次使同时显示太多包.请注意,这不是关于文件系统的问题;据我所知,文件系统运行良好——这只是一个关于 Eclipse 包浏览器中视觉显示的问题.
那么:有没有办法向层次结构添加级别?谢谢!!(OS X 10.6 上的 Eclipse Helios)
Package Explorer/View Menu/Package Presentation.../Hierarchical
可以使用 Ctrl + F10 或包浏览器右上角的小箭头向下图标打开查看菜单".>
OK here's what I would like: in the Eclipse package explorer, I see the following: (dot represents a clickable arrow that I can use to expand the folder)
- PROJECT
- Source Folder
- Package
- Class
- Package.SubPackage
- Foo
- Bar
- Package.OtherSubPackage
- Package.OtherSubPackage.VerySubPackage
- OtherPackage
- Foobar
- OtherPackage.SubPackage
- Baz
- Package
- Source Folder
Long story short, I want to have many packages, each with many subpackages, in a source folder (and several source folders, so making more won't solve the problem)--so on the order of a couple hundred packages per source folder--ten to twenty packages each with fifteen subpackages. Therefore, I want the hierarchy to look like this:
- PROJECT
- Source Folder
- Package
- Class
- Package.SubPackage
- Foo
- Bar
- Package.OtherSubPackage
- Package.OtherSubPackage.VerySubPackage
- Package.SubPackage
- OtherPackage
- Foobar
- OtherPackage.SubPackage
- Baz
- OtherPackage.SubPackage
- Package
- Source Folder
so I can open or close a package and see a list of subpackages instead of having package and subpackage all at the same level in the hierarchy--which again makes far too many packages simultaneously displayed. Note this is not a question about filesystem; the file system works fine as far as I can tell--it is only a question about the visual display in the Eclipse package explorer.
So: is there a way to add levels to the hierarchy? Thanks!! (Eclipse Helios on OS X 10.6)
Package Explorer / View Menu / Package Presentation... / Hierarchical
The "View Menu" can be opened with Ctrl + F10, or the small arrow-down icon in the top-right corner of the Package Explorer.
这篇关于如何在 Eclipse 包资源管理器中查看分层包结构的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!