Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Execute async() followed by sync()
Execute async() followed by sync() [message #1410598] Thu, 21 August 2014 06:58
Erdal Karaca is currently offline Erdal KaracaFriend
Messages: 845
Registered: July 2009
Senior Member
I found the following code flow in org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.notify(int, Event, Widget)

call to org.eclipse.swtbot.swt.finder.widgets.AbstractSWTBot.asyncExec(VoidResult)

then, immediately, a call to org.eclipse.swtbot.swt.finder.finders.UIThreadRunnable.syncExec(VoidResult)

What is the rationale behind this? Why not just executing the runnable directly in a syncExec() call?

Using SWTBot 2.1.1.
Previous Topic:JRuby Support
Next Topic:Difference of click() in the test thread vs. wrapping its execution in syncExec()?
Goto Forum:
  


Current Time: Tue Sep 18 21:07:17 GMT 2018

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

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

Back to the top