Eclipse JFace TreeViewer 级别自动扩展不起作用

发布于 2024-09-05 02:55:18 字数 173 浏览 3 评论 0原文

根据 Eclipse 文档 TreeViewer.setAutoExpandLevel(3) 意味着顶级元素及其子元素被展开,但不是孙子元素。

我在代码中使用了它,但设置输入后,树不会自动扩展,无论是在 OS X 还是 Linux 上。手动(通过鼠标)扩展树可以完美地工作。我错过了什么吗?

According to the Eclipse documentation TreeViewer.setAutoExpandLevel(3) means that top-level elements are expanded, and their children, but not grandchildren.

I used that in my code, but after setting the input the tree is not auto-expanded, neither on OS X nor on Linux. Expanding the tree manually (via mouse) works flawlessly. Am I missing anything?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

扮仙女 2024-09-12 02:55:18

请参阅此处: https://bugs.eclipse.org/bugs/show_bug.cgi ?id=27480

看起来这不会改变。

See here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=27480

Looks like this isn't going to be changed.

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