SWT Tree [message #465461] |
Wed, 14 December 2005 09:00  |
Eclipse User |
|
|
|
Hello out there,
I got a problem with swt tree. I'm trying to write tree that is
representing some business structure stored in a database. As the
structure can be very big, I need the tree to be dynamic, so that I
don't need to read the whole structure out of the db on startup.
So I want the tree to start with a root TreeItem and the direct
Child-TreeItems attached to it (root-tree). Now, when the user expands
one of the TreeItems, I want the Child-Items to be read out of the db
and to be appended to the parent-item. Creating the root-tree is quite
easy, but then the direct child-items aren't expandable, i.e. the
'+'-Symbol isn't there. Does anybody know how that problem can be solved?
I already looked at the snippets on the swt-homepage and there actually
is a snippet that pretends to do something similar using SWT.VIRTUAL.
But when I tried to test it, it didn't work because there is a function
TreeItem.setItemCount(int) used there that doesn't exist...
I hope somebody can help.
Regards
Julien
|
|
|
|
Re: SWT Tree [message #466695 is a reply to message #465463] |
Fri, 13 January 2006 13:32  |
Eclipse User |
|
|
|
why not using JFace?
Tom
Julien wrote:
> Ok, I realized that the snippet is using a 3.2 release (at least M3) and
> I am working on a 3.1 release, so swt.virtual isn't supported for Tree.
> I'll try that...
|
|
|
Powered by
FUDForum. Page generated in 0.04354 seconds