Complete view/editor notification/event [message #635290] |
Tue, 26 October 2010 05:36  |
Eclipse User |
|
|
|
There are methods for waitFor() widgets a.s.o.
Are there also methods that are waiting for events?
USE CASE : View/Editor is being refreshed and filled out with data (table,tree, whatever...)
QUESTION : How can I get an info that filling has completed(so all items are visible/refreshed)?
|
|
|
Re: Complete view/editor notification/event [message #635362 is a reply to message #635290] |
Tue, 26 October 2010 10:33  |
Eclipse User |
|
|
|
SWTBot only provides for some of the basic waits. By default it handles
waits on widgets that are created but not yet visible, so you need not
worry about such cases.
For the cases you refer to, you'd likely need to write you own wait
condition that looks for something specific to what you wish to wait on.
This could be something that waits for a message that says 'table
loaded...' or if your table only enables when everything is loaded, then
you could wait on table.isEnabled(). See the Conditions class in the
swt.finder package for some examples.
--
Ketan
ketan.padegaonkar.name | eclipse.org/swtbot | @ketanpkr
On 10/26/10 2:36 AM, Jan Bartosz wrote:
> There are methods for waitFor() widgets a.s.o.
> Are there also methods that are waiting for events?
> USE CASE : View/Editor is being refreshed and filled out with data
> (table,tree, whatever...) QUESTION : How can I get an info that filling
> has completed(so all items are visible/refreshed)?
|
|
|
Powered by
FUDForum. Page generated in 0.02710 seconds