Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Tree
SWT Tree [message #465461] Wed, 14 December 2005 14:00 Go to next message
Julien is currently offline JulienFriend
Messages: 15
Registered: July 2009
Junior Member
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 #465463 is a reply to message #465461] Wed, 14 December 2005 14:22 Go to previous messageGo to next message
Julien is currently offline JulienFriend
Messages: 15
Registered: July 2009
Junior Member
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...
Re: SWT Tree [message #466695 is a reply to message #465463] Fri, 13 January 2006 18:32 Go to previous message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 5487
Registered: July 2009
Senior Member
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...
Previous Topic:catching workbench window close event
Next Topic:Date Time picker proposed for 3.2
Goto Forum:
  


Current Time: Sat Dec 20 23:58:16 GMT 2014

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

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