Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[swtbot-dev] [GEF] Why using UIThreadRunnable.asyncExec and not syncExec?

Hi all,

I recently met some troubles with some SWTBot GEF tests. Indeed, it happens that some events are not handled early enough for my test to succeed. There are for sure things that I could improve in my test to get them green, but I prefered digging in the SWTBotFigureCanvas code to see how it works ;)
I noticed the use of asyncExec to give events to dispatcher, and async is ofter something difficult to manage in tests. Why not using a synchronous execution?

Regards,
--

Mickael Istria
R&D Engineer

BonitaSoft - Open your processes
email : mickael.istria@xxxxxxxxxxxxxx

This message and any attachment (the "message") is intended solely for the addressees and is confidential. If you receive this message by mistake, please delete it and notify the sender immediately. Any use not in accordance with its purpose, any out-spread or disclosure, either as a whole or partially, is prohibited except with formal approval. Internet cannot guarantee the integrity of this message, therefore BonitaSoft will not be liable for the message if modified.


Back to the top