Latency when refresh a Tree with many elements [message #644547] |
Mon, 13 December 2010 08:31 |
|
Hi,
I have implemented a View that shows the content of the current model the user is working with, i.e. a Model Explorer View. I have a listener in this view that against any change in the ResourceSet (add, remove or change an element in the current resource), refreshes the Tree to show the results.
There is a problem with this refresh when the Tree has many elements (> 300 aproximately). There exists any way to improve the refresh of the tree? The simple code I execute is the following:
if (viewer != null && !viewer.getTree().isDisposed()) {
viewer.refresh();
}
Also occurs if I expand a Leaf of the Tree that contains many elements.
Thanks!
Marc
|
|
|
|
Re: Latency when refresh a Tree with many elements [message #644565 is a reply to message #644561] |
Mon, 13 December 2010 10:05 |
|
Prasad,
Update method is not valid, cause its purpose is to update, for example, the label of an element.
Refresh method, refreshed the entry Tree or the contents of the element you specify. The problem appears when this element contains many elements (> 300). I think it's a general problem in SWT, because in other technologies it doesn't happen.
Thanks for your response.
Marc
|
|
|
|
Powered by
FUDForum. Page generated in 0.04881 seconds