hi ketan,
I took a look at the code. the reason why it works is the exectute()
method's interface throws a throwable.
In the UIThreadRunnable's case, there is a plain run method to override. the
run() interface defined doesn't throw an exception.
what one could do is that change all the run interfaces to throw a throwable
and in the UIThreadRunnable's syncExec() and AsyncExec() methods, catch the
exception and rethrow it. Am i making sense? sorry not infront of the swtbot
code right now to back this up. sitting in my bed half asleep.
will get back to you on this.
On Tue, Jul 1, 2008 at 12:12 AM, Ketan Padegaonkar <
[EMAIL PROTECTED]> wrote:
> Somesh,
>
> You may find this snippet interesting:
> http://fisheye3.atlassian.com/browse/swtbot/trunk/net.sf.swtbot.finder/src/net/sf/swtbot/SWTBotTestCase.java?r1=785&r2=815#seg9
>
> -- Ketan
>
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> SWTBot-users mailing list
> SWTBot-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/swtbot-users
> http://swtbot.org/ - a functional testing tool for SWT/Eclipse
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
SWTBot-users mailing list
SWTBot-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/swtbot-users
http://swtbot.org/ - a functional testing tool for SWT/Eclipse