Skip to main content



      Home
Home » Eclipse Projects » JFace » TreeViewer with Columns
TreeViewer with Columns [message #540048] Mon, 14 June 2010 12:57 Go to next message
Eclipse UserFriend
Hello,

i need a special treeviewer with columns, like the picture below Razz

Col 1 | Col 2 | Col 3
__________________________
-item1 | |
| -item1.1 |
| | +item1.1.1
| | +item1.1.2
| +item1.2 |
| +item1.3 |
| +item1.4 |


is this in jface possible? i want that the childs of an item, are placed on the next column.
Re: TreeViewer with Columns [message #540055 is a reply to message #540048] Mon, 14 June 2010 13:19 Go to previous messageGo to next message
Eclipse UserFriend
Hello,

i need a special treeviewer with columns.

Col 1 | Col 2 | Col 3
__________________________
-item1 | |
| -item1.1 |
| | +item1.1.1
| | +item1.1.2
| +item1.2 |
| +item1.3 |
| +item1.4 |

is this in jface possible? i want that the childs of an item, are placed on the next column.


P.S.
Sorry, but the formatter has scramble my Text.
It is here possible to upload a picture?
Re: TreeViewer with Columns [message #540140 is a reply to message #540055] Tue, 15 June 2010 03:10 Go to previous messageGo to next message
Eclipse UserFriend
Quote:
Hello,

i need a special treeviewer with columns.

Col 1 | Col 2 | Col 3
__________________________
-item1 | |
| -item1.1 |
| | +item1.1.1
| | +item1.1.2
| +item1.2 |
| +item1.3 |
| +item1.4 |

is this in jface possible? i want that the childs of an item, are placed on the next column.



For this to be possible you would need infinite columns...

cuz item1.1.1 children will be required to be shifted one more column,which doesnt exist,
and there children will require one more column...

Whats your requirement exacly???
Re: TreeViewer with Columns [message #540445 is a reply to message #540055] Wed, 16 June 2010 04:04 Go to previous messageGo to next message
Eclipse UserFriend
If I understand correctly, you want to create a tree with columns, were the first column is the tree and the following columns are for attributes of nodes in the tree.

If this is the case, you can achieve this via TreeColumn class
TreeColumn column = new TreeColumn(view.getTree(), SWT.CENTER);

Note, Your label provider needs to implement ITableLabelProvider

Hope this helps
Re: TreeViewer with Columns [message #541933 is a reply to message #540048] Wed, 23 June 2010 05:25 Go to previous message
Eclipse UserFriend

I have found a solution for the problem btw. i found
a code snippet therefor:

- Snippet026AnonymousBeanProperties

Thats exactly my problem, but with this snippet i have solved it.

Previous Topic:How to trigger JFace Databinding validation
Next Topic:Widgets in tables
Goto Forum:
  


Current Time: Wed Jul 23 17:22:33 EDT 2025

Powered by FUDForum. Page generated in 0.05542 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top