如何在 Eclipse 包资源管理器中查看分层包结构
好的,这就是我想要的:在 Eclipse 包资源管理器中,我看到以下内容:(点代表可单击的箭头,我可以使用它来展开文件夹)
- 项目
- 源文件夹
- 包
- 类
- Package.SubPackage
- Foo
- Bar
- Package.OtherSubPackage
- 包.OtherSubPackage.VerySubPackage
- OtherPackage
- Foobar
- OtherPackage.SubPackage
- Baz
- 包
- 源文件夹
长话短说,我想要在一个源文件夹中拥有许多包,每个包都有许多子包(以及多个源文件夹,因此创建更多包并不能解决问题) - 所以每个源文件夹有几百个包--十到二十个包,每个包有十五个子包。因此,我希望层次结构如下所示:
- PROJECT
- 源文件夹
- 包
- 类
- 包.子包
- 福
- Bar
- Package.OtherSubPackage
- Package.OtherSubPackage.VerySubPackage
< /ul> - 包.子包
- 其他包
- Foobar
- 其他包.子包
- Baz
- 其他包.子包
- 包
- 源文件夹
这样我就可以打开或关闭包并查看子包列表,而不是让包和子包都位于层次结构中的同一级别 - 这又会导致同时显示太多包。请注意,这不是关于文件系统的问题;据我所知,文件系统工作正常——这只是关于 Eclipse 包资源管理器中的视觉显示的问题。
那么:有没有办法在层次结构中添加级别?谢谢!! (OS X 10.6 上的 Eclipse Helios)
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)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
包资源管理器 / 查看菜单 / 包演示... / 分层
“查看菜单”可以使用 Ctrl + F10 或顶部的小向下箭头图标打开- 包资源管理器的右角。
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 的分层表示。
Here is representation of screen Eclipse to make hierarachical.
对于 Macbook 中的 Eclipse,只需单击 2 次即可:
For Eclipse in Macbook it is just 2 click process: