title: Handling SWT Dialog boxes while running tests in headless mode using SWTBOT
body: <p>I am running a Junit test case on my eclipse application that was built using SWT. I am doing GUI testing using SWTBot. So, here is my problem:</p>
  
  <p><code>editor.bot().button("Make Excel Template").click();</code></p>
  
  <p>This code helps me generate a template in my application. Once done, it throws up a Modal Dialog with "OK" as a message. However, I can't get SWTBot to find this button/widget/dialog box. I keep getting a 'WidgetNotFoundException'.</p>
  
  <p>Has someone come across this? official content on the SWTBot website says that dialog boxes should be run in seperate non-UI threads. The examples provided however, aren't very informative.</p>
  
  <p>Appreciate your help!</p>