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:Tables with CHECK: difference between platforms
Next Topic:StyledText widget redesign
Goto Forum:
  


Current Time: Mon Oct 23 02:22:31 GMT 2017

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

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