I’m new in the java world, so I’m sorry if my question is trivial.
I’m developing a Eclipse view part, and I’m filling a SWT tree view with the following data structure. All data is in memory:
Node1
Child1
Child2
Node2
Child1
...
Child2915
I think that is not a very big tree, but it is slow being drawn (10 seconds). I have manage trees in .NET with more than 10.000 elements and it loaded smoothly. I don’t know if I’ve implemented the code, but the same problem appeared in .NET if I did not call BeginUpdate() - EndUpdate().
Must I call something similar in Java/SWT? Any other tips about why the tree is so slow?
Finally, I used
setRedraw(boolean value)after calling refresh in my TreeViewer.