Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » SWTBot » Invoking SWTBot methods on non-UI threads
Invoking SWTBot methods on non-UI threads [message #7788] Tue, 09 December 2008 17:24 Go to next message
Joe Luebker is currently offline Joe LuebkerFriend
Messages: 36
Registered: July 2009
Member
Hello,

I would like to verify something about SWTBot running in non-UI threads.
Are there any SWTBot methods that need to run in a UI thread, wrapped in
a syncExec call for example?

Or does SWTBot handle all interactions with the UI thread? Then it is
guaranteed that it is safe to call any SWTBot methods on non-UI thread
and not have to worry about hangs/deadlocks related to operations on the
UI thread.

Thanks,
Joe
Re: Invoking SWTBot methods on non-UI threads [message #7852 is a reply to message #7788] Tue, 09 December 2008 23:51 Go to previous messageGo to next message
Ketan Patel is currently offline Ketan PatelFriend
Messages: 68
Registered: July 2009
Member
The general idea I think is, SWTBot API handles/hides needing to execute a
method on UI thread...the one of the many things I like about this
framework.

Now if you use SWT Widget objects yourself, then you must handle UI thread
stuff. But I love the APIs to execute in UI thread and get results back
from it. Only wish there was a way to handle exceptions in UI thread
runnable...something like SafeRunnable in eclipse. But this is not really
big issue.
Re: Invoking SWTBot methods on non-UI threads [message #7911 is a reply to message #7852] Wed, 10 December 2008 02:50 Go to previous message
Ketan Padegaonkar is currently offline Ketan PadegaonkarFriend
Messages: 873
Registered: July 2009
Senior Member
Handling exceptions has been a long pending feature request.

If you can submit a patch, that'll be great.

-- Ketan

On 10/12/08 05:21, Ketan Patel wrote:
> The general idea I think is, SWTBot API handles/hides needing to execute
> a method on UI thread...the one of the many things I like about this
> framework.
> Now if you use SWT Widget objects yourself, then you must handle UI
> thread stuff. But I love the APIs to execute in UI thread and get
> results back from it. Only wish there was a way to handle exceptions in
> UI thread runnable...something like SafeRunnable in eclipse. But this is
> not really big issue.
>
Previous Topic:test a dialog in my rcp application
Next Topic:*Wrong Thread* debug message
Goto Forum:
  


Current Time: Mon Sep 27 23:51:28 GMT 2021

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

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

Back to the top