javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt/InstallerUiEswt.java
changeset 26 dc7c549001d5
parent 23 98ccebc37403
child 47 f40128debb5d
child 49 35baca0e7a2e
child 60 6c158198356e
--- a/javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt/InstallerUiEswt.java	Fri May 14 15:47:24 2010 +0300
+++ b/javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt/InstallerUiEswt.java	Thu May 27 12:49:31 2010 +0300
@@ -37,6 +37,7 @@
 import java.io.IOException;
 import java.util.Hashtable;
 
+import org.eclipse.ercp.swt.midp.UIThreadSupport;
 import org.eclipse.swt.SWT;
 import org.eclipse.swt.events.ControlEvent;
 import org.eclipse.swt.events.ControlListener;
@@ -52,7 +53,6 @@
 import org.eclipse.swt.widgets.Composite;
 import org.eclipse.swt.widgets.Listener;
 import org.eclipse.swt.widgets.Shell;
-//import org.eclipse.swt.widgets.MessageBox;
 
 /**
  * JavaInstaller eSWT UI.
@@ -127,13 +127,13 @@
         iImageTable = new Hashtable();
         // Create a new thread to be the UI main thread.
         iUiThreadExists = true;
-        new Thread(new Runnable()
+        UIThreadSupport.startInUIThread(new Runnable()
         {
             public void run()
             {
                 uiMain();
             }
-        }, "InstallerUiMainThread").start();
+        });
         // To wait InstallerUi to be ready before installer main thread
         // continues, uncomment the following line.
         //waitForUi();