javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt/InstallerUiEswt.java
equal
deleted
inserted
replaced
35 |
35 |
36 import java.io.InputStream; |
36 import java.io.InputStream; |
37 import java.io.IOException; |
37 import java.io.IOException; |
38 import java.util.Hashtable; |
38 import java.util.Hashtable; |
39 |
39 |
|
40 import org.eclipse.ercp.swt.midp.UIThreadSupport; |
40 import org.eclipse.swt.SWT; |
41 import org.eclipse.swt.SWT; |
41 import org.eclipse.swt.events.ControlEvent; |
42 import org.eclipse.swt.events.ControlEvent; |
42 import org.eclipse.swt.events.ControlListener; |
43 import org.eclipse.swt.events.ControlListener; |
43 import org.eclipse.swt.graphics.Font; |
44 import org.eclipse.swt.graphics.Font; |
44 import org.eclipse.swt.graphics.FontData; |
45 import org.eclipse.swt.graphics.FontData; |
50 import org.eclipse.swt.widgets.Display; |
51 import org.eclipse.swt.widgets.Display; |
51 import org.eclipse.swt.widgets.Event; |
52 import org.eclipse.swt.widgets.Event; |
52 import org.eclipse.swt.widgets.Composite; |
53 import org.eclipse.swt.widgets.Composite; |
53 import org.eclipse.swt.widgets.Listener; |
54 import org.eclipse.swt.widgets.Listener; |
54 import org.eclipse.swt.widgets.Shell; |
55 import org.eclipse.swt.widgets.Shell; |
55 //import org.eclipse.swt.widgets.MessageBox; |
|
56 |
56 |
57 /** |
57 /** |
58 * JavaInstaller eSWT UI. |
58 * JavaInstaller eSWT UI. |
59 */ |
59 */ |
60 public class InstallerUiEswt extends InstallerUi |
60 public class InstallerUiEswt extends InstallerUi |
125 StartUpTrace.doTrace("InstallerUiEswt init"); |
125 StartUpTrace.doTrace("InstallerUiEswt init"); |
126 // Create a hashtable for icons. |
126 // Create a hashtable for icons. |
127 iImageTable = new Hashtable(); |
127 iImageTable = new Hashtable(); |
128 // Create a new thread to be the UI main thread. |
128 // Create a new thread to be the UI main thread. |
129 iUiThreadExists = true; |
129 iUiThreadExists = true; |
130 new Thread(new Runnable() |
130 UIThreadSupport.startInUIThread(new Runnable() |
131 { |
131 { |
132 public void run() |
132 public void run() |
133 { |
133 { |
134 uiMain(); |
134 uiMain(); |
135 } |
135 } |
136 }, "InstallerUiMainThread").start(); |
136 }); |
137 // To wait InstallerUi to be ready before installer main thread |
137 // To wait InstallerUi to be ready before installer main thread |
138 // continues, uncomment the following line. |
138 // continues, uncomment the following line. |
139 //waitForUi(); |
139 //waitForUi(); |
140 } |
140 } |
141 |
141 |