Eclipse JFace TreeViewer 级别自动扩展不起作用
根据 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
请参阅此处: 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.