Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSWTBot and Nattable: wait until all pending updates are performed
https://www.eclipse.org/forums/index.php/mv/msg/1101399/1817380/#msg_1817380
This works all good, but in rare cases the test fails.
Presumably, it is some timing related issue.
This is what we do:
1. Change the underlying data
2. Almost immediately check the content of the Nattable
Is there any way to wait for pending Nattable update activity?]]>Robert Schulk2019-11-21T12:52:57-00:00Re: SWTBot and Nattable: wait until all pending updates are performed
https://www.eclipse.org/forums/index.php/mv/msg/1101399/1817383/#msg_1817383
Dirk Fauth2019-11-21T13:09:54-00:00Re: SWTBot and Nattable: wait until all pending updates are performed
https://www.eclipse.org/forums/index.php/mv/msg/1101399/1817384/#msg_1817384
So I guess the nattable.refresh() blocks as long as the changes are taking place, correct? In that case we need to handle this somehow different.]]>Robert Schulk2019-11-21T13:46:39-00:00Re: SWTBot and Nattable: wait until all pending updates are performed
https://www.eclipse.org/forums/index.php/mv/msg/1101399/1817385/#msg_1817385
Dirk Fauth2019-11-21T13:48:55-00:00Re: SWTBot and Nattable: wait until all pending updates are performed
https://www.eclipse.org/forums/index.php/mv/msg/1101399/1817386/#msg_1817386
Robert Schulk2019-11-21T13:55:14-00:00Re: SWTBot and Nattable: wait until all pending updates are performed
https://www.eclipse.org/forums/index.php/mv/msg/1101399/1817387/#msg_1817387
Quote:
So I guess the nattable.refresh() blocks as long as the changes are taking place, correct?
No I don't think so. How should refresh() know how long to wait? It triggers an event that is fired the stack upwards and triggers cache clearing. If the event has not yet reached the NatTable instance you access cached states. ]]>Dirk Fauth2019-11-21T13:55:48-00:00