It    [ "You may use the syncExec() to execute your printout of the shells." 
] worked 

thanks a lot......!


bye!!!
Veneet




Vincent Mahe wrote:
> 
> 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/I-am-Stuck-on--Message-Box%21%21%21-tp19852606p19856312.html
Sent from the SWTBot Users List mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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