Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Complete view/editor notification/event
Complete view/editor notification/event [message #635290] Tue, 26 October 2010 09:36 Go to next message
Jan Bartosz is currently offline Jan BartoszFriend
Messages: 1
Registered: July 2009
Location: Poland/Wroclaw
Junior Member
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 14:33 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
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)?
Previous Topic:SWTBot with Fitnesse
Next Topic:Help: Could not find plugin
Goto Forum:
  


Current Time: Fri Dec 19 23:35:09 GMT 2014

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

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