Veneet a écrit :
> Hi somesh 
>
>    Thanx for the reply
>
>    i wrote::::
>    
>                    try{
>                       Shell[] shell=bot.getDisplay().getShells();
>
>                       for(int i=0;i<shell.length;i++)
>
>                       System.out.println(shell[i]);
>
>                       }catch(Throwable r)
>                                 {
>                                       
> System.out.println("Fail::"+r.getMessage()); 
>                               }
>
>
>
> i am getting this error:-:-:->   <  Fail::Invalid thread access>
>
>   
it's because the shells are objects of the GUI thread, when SWTBot items 
are on a distinct test thread.
You may use the syncExec() to execute your printout of the shells.

-- 
Cordialement

Vincent MAHÉ

Ingénieur Plate-forme OpenEmbeDD - http://openembedd.org
IRISA-INRIA, Campus de Beaulieu, 35042 Rennes cedex, France
Tél: +33 (0) 2 99 84 71 00, Fax: +33 (0) 2 99 84 71 71


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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

Reply via email to