如何查看Eclipse包资源管理器中的层次化包装结构 [英] How to view hierarchical package structure in Eclipse package explorer

查看:185
本文介绍了如何查看Eclipse包资源管理器中的层次化包装结构的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

OK这里是我想要的:在Eclipse包资源管理器中,我看到以下内容:(点代表一个可点击的箭头,我可以用来扩展文件夹)

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
    • 源文件夹

          • PROJECT
            • Source Folder
              • Package
                  Class

                    Foo
                    Bar
                    Foobar
                    Baz

                  在源文件夹(和多个源文件夹,因此使更多的不能解决问题)中有许多包,其中包含许多子包,每个源文件夹有几百个包的顺序 - 十到二十个包每个都有十五个子包。因此,我希望层次结构如下所示:

                  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
                    • 源文件夹

                        • Class
                        • Package.SubPackage
                            Foo
                          • PROJECT
                            • Source Folder
                              • Package
                                  Class
                                • Package.SubPackage
                                    Foo
                                    Bar
                                  • Package.OtherSubPackage.VerySubPackage
                                  • Package.OtherSubPackage.VerySubPackage
                                  • OtherPackage
                                      Foobar
                                    • OtherPackage.SubPackage
                                        Baz
                                      • OtherPackage
                                          Foobar
                                        • OtherPackage.SubPackage
                                            Baz

                                          所以我可以打开或关闭一个包并查看子包列表,而不是将包和子包全部放在层次结构中的同一级 - 这再次使得同时显示太多的包。请注意,这不是关于文件系统的问题;文件系统可以正常工作,就我所知 - 这只是一个关于Eclipse软件包资源管理器中的视觉显示的问题。

                                          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.

                                          那么,有没有办法为层次结构添加层次?谢谢!! (OS X 10.6上的Eclipse Helios)

                                          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

                                          Package Explorer / View Menu / Package Presentation... / Hierarchical

                                          可以使用 Ctrl + F10 打开查看菜单,或右上角的小箭头图标Package Explorer的角落。

                                          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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆