Removing LazyLoading of TreeViewer [message #242800] |
Tue, 11 December 2007 13:34 |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: john.ha.com
Hi All,
I am having a problem regarding selection in the TreeViewer.
I had implemented all the methods like getParent, getChildren, getElements
...
properly in the ContentProvider.
I am establishing the relationship of the parent and child for the
elements which i am displaying , in the contentProviders getChildren
Method.
So untill and unless getChildren method is fired on a particular treeItem
the parent and child relationship is not established for my TreeItems.
So for me only available option is if i expand the whole tree and one go,
the getChildren method will be fired for all the TreeItems.
My treeviewer is consisting of around 5,00,000 to 50,00,000 items when i
do expandAll on my TreeViewer it is taking lot of time so i cant do it.
Another possibility for me is if i am successful in eliminating the
lazyloading of a treeviewer then getChildren method will be fired for all
the elements of my tree, and without doing expandAll my work will be done.
So can you plz suggest me how to approach this problem. Is there any
possibility that I can avoid the lazyloading of a tree.....
Regards,
John
|
|
|
Powered by
FUDForum. Page generated in 0.05047 seconds