TreeViewer::setInput() -> UI timeout [message #1328144] |
Fri, 02 May 2014 14:38 |
Stephan Picker Messages: 2 Registered: May 2014 |
Junior Member |
|
|
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 15:16] Report message to a moderator
|
|
|
Re: TreeViewer::setInput() -> UI timeout [message #1397096 is a reply to message #1328144] |
Wed, 09 July 2014 07:37 |
Hussein MHANNA Messages: 45 Registered: February 2014 Location: LAVAL |
Member |
|
|
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
ALL4TEC
|
|
|
Powered by
FUDForum. Page generated in 0.02122 seconds