Skip to main content



      Home
Home » Eclipse Projects » JFace » TreeViewer::setInput() -> UI timeout
icon9.gif  TreeViewer::setInput() -> UI timeout [message #1328114] Fri, 02 May 2014 10:19 Go to next message
Eclipse UserFriend
I'am implementing a TreeViewer, but I notices that every time I set the input via setInput() - even with setInput(null) - the mouse Cursor flickers and shows the loading/wait icon.



This is extremely annoying, because in my application the input gets reset very often.

When refreshing the whole table everything is fine.

I also implemented a completely plain new TableViewer with only a simple content-provider attached, but the problem remains. Is this problem internal to JFace?

[Updated on: Sat, 03 May 2014 14:43] by Moderator

Re: TreeViewer::setInput() -> UI timeout [message #1396678 is a reply to message #1328114] Tue, 08 July 2014 12:33 Go to previous messageGo to next message
Eclipse UserFriend
Calling 'setInput' causes the viewer to discard and rebuild everything. Try using the update() or refresh() variants instead.

Brian.
Re: TreeViewer::setInput() -> UI timeout [message #1397093 is a reply to message #1396678] Wed, 09 July 2014 03:31 Go to previous message
Eclipse UserFriend
Hi,

If you haven't a very big model, then please check your ContentProvider because the result you get is strange.

And if you have a very big model, then you can use the stlye SWT.VIRTUAL with your TableViewer. See the example here.


If you have only one element that must be updated, then you can use the update method (update(Object element, String[] properties)) by passing the model object as the first parameter and null as the second parameter.


Hussein
Previous Topic:TableViewer with OwnerDrawLabel only draws the first row
Next Topic:TreeViewer::setInput() -> UI timeout
Goto Forum:
  


Current Time: Sat Jul 05 02:13:00 EDT 2025

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

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

Back to the top