Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jdt-ui-dev] [JUnit] SWTException after TestRunnerViewPart has been displayed



You have to make sure that you talk to SWT widgets from the UI thread only.
See the newsgroup for more information about the SWT threading model
(Display.asyncExec/Display.syncExec).

--erich



                                                                           
             "Julien Ruaux"                                                
             <jruaux@xxxxxxxx>                                             
             Sent by:                                                   To 
             jdt-ui-dev-admin@         <jdt-ui-dev@xxxxxxxxxxx>            
             eclipse.org                                                cc 
                                                                           
                                                                   Subject 
             02/05/2003 06:38          [jdt-ui-dev] [JUnit] SWTException   
             PM                        after TestRunnerViewPart has been   
                                       displayed                           
                                                                           
             Please respond to                                             
             jdt-ui-dev@eclips                                             
                   e.org                                                   
                                                                           
                                                                           




Hi,

I am calling JUnitLaunchShortcut from a plugin I am writing. After the
TestRunnerViewPart has been displayed, ie after the test run ended, I am
trying to display a MessageDialog. This throws an SWTException with id
'Invalid thread access'.
Am I doing anything wrong in the display management, or is this a bug of
the JUnit plugin ?

Thanks,

Julien



Back to the top