如何在 Eclipse 包资源管理器中查看分层包结构

发布于 2024-09-27 03:07:30 字数 1000 浏览 1 评论 0原文

好的,这就是我想要的:在 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

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
      • OtherPackage
          Foobar

        • OtherPackage.SubPackage
            Baz

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

靑春怀旧 2024-10-04 03:07:30

包资源管理器 / 查看菜单 / 包演示... / 分层

“查看菜单”可以使用 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.

轮廓§ 2024-10-04 03:07:30

下面是 Eclipse 的分层表示。

输入图片此处描述

Here is representation of screen Eclipse to make hierarachical.

enter image description here

初见 2024-10-04 03:07:30

对于 Macbook 中的 Eclipse,只需单击 2 次即可:

  • 单击包资源管理器中的视图菜单(3 点符号)->将鼠标悬停在包演示上 ->单击分层

在此输入图像描述

For Eclipse in Macbook it is just 2 click process:

  • Click on view menu (3 dot symbol) in package explorer -> hover over package presentation -> Click on Hierarchical

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文