Here’s a java tip for you guys. When it is need to access Swing components from an SWT thread, use the following code.
//Code Starts
Display display = new Display();
display.asyncExec( new Runnable() {
public void run() {
//Your Code
}
});
//Code Ends