Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Treeviewer performance problem
Treeviewer performance problem [message #548961] Fri, 23 July 2010 10:37 Go to next message
Eclipse UserFriend
Hi,

hopefully I am at the right place with "my" thread - eventually it's my first one Rolling Eyes

I am using my firsttime SWT in a project and directly run into trouble. Actually, everything is working fine, except the performance of the treeviewer. A refresh from ~ 1000 entries to ~ 50 entries needs round about 15 seconds.

If I make the same refreshing and press two times alt+tab, the refreshing needs exactly this time (switch to another "window" and back) Confused

Does anybody had the same problem and fixed it?

Would be happy for answers.

Thx

mark

[Updated on: Tue, 27 July 2010 02:15] by Moderator

Re: Treeviewer performance problem [message #550679 is a reply to message #548961] Wed, 04 August 2010 03:03 Go to previous message
Eclipse UserFriend
Hi All,

the problem was, that the tree redraws with every new entry.

To solve the problem, set the redraw of the tree to false, refresh and set the redraw true.

=> filteredTree.getViewer().getControl().setRedraw(false/true);

Previous Topic:swt drag and drop
Next Topic:Maven repo for SWT 3.5?
Goto Forum:
  


Current Time: Sun Aug 31 07:56:18 EDT 2025

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

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

Back to the top