Skip to main content



      Home
Home » Eclipse Projects » JFace » TreeViewer::setInput() -> UI timeout
icon9.gif  TreeViewer::setInput() -> UI timeout [message #1328144] Fri, 02 May 2014 10:38 Go to next message
Eclipse UserFriend
I'am implementing a TreeViewer, but I noticed 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 11:16] by Moderator

Re: TreeViewer::setInput() -> UI timeout [message #1397096 is a reply to message #1328144] Wed, 09 July 2014 03:37 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:TreeViewer::setInput() -> UI timeout
Next Topic:Some errors from Jface...
Goto Forum:
  


Current Time: Wed Jul 23 18:30:26 EDT 2025

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

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

Back to the top