eclipse:treetable 从第二列创建树
我设法使用 treeColumn() 使用网上的各种示例制作了一个树表,看起来
| Column1 | Column2 |
--------------------------------
|+ColItem1 | Col2Item1 |
| -Col1subitem1 | Col2subitem2 |
| item1 | item1 |
| item2 | item2 |
| item3 | item3 |
基本上树位于第一列。它从左侧绘制。 我想要的是从第二列中画出树,如下所示:
| Column1 | Column2 |
----------------------------------
|ColItem1 | +Col2Item1 |
|Col1subitem1 | -Col2subitem2 |
|item1 | item1 |
|item2 | item2 |
|item3 | item3 |
任何人都可以帮助我完成这个任务吗?或者只是不可能?
I managed to make a treetable using treeColumn() using various examples from the net and it appears like this
| Column1 | Column2 |
--------------------------------
|+ColItem1 | Col2Item1 |
| -Col1subitem1 | Col2subitem2 |
| item1 | item1 |
| item2 | item2 |
| item3 | item3 |
basically the tree is on the first column.It draws from the left.
What i want is draw the tree from the second column like this:
| Column1 | Column2 |
----------------------------------
|ColItem1 | +Col2Item1 |
|Col1subitem1 | -Col2subitem2 |
|item1 | item1 |
|item2 | item2 |
|item3 | item3 |
Can anyone help me accomplish this? Or is it just not possible ??
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
通过使用 org.eclipse.swt.widgets.Tree 小部件,这是不可能的。但是你可以尝试 Nebula Grid Component,这不是原生小部件,对某事有支持..
By using the
org.eclipse.swt.widgets.Tree
widget this is not possible. But you could try the Nebula Grid Component, this is not a native widget, that has support for something..