Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Treeviewer performance problem
Treeviewer performance problem [message #548961] Fri, 23 July 2010 14:37 Go to next message
MoJo is currently offline MoJoFriend
Messages: 7
Registered: July 2010
Junior Member
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 06:15]

Report message to a moderator

Re: Treeviewer performance problem [message #550679 is a reply to message #548961] Wed, 04 August 2010 07:03 Go to previous message
MoJo is currently offline MoJoFriend
Messages: 7
Registered: July 2010
Junior Member
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: Tue Apr 16 16:09:03 GMT 2024

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

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

Back to the top