javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt/InstallerUiEswt.java
equal
deleted
inserted
replaced
124 super.init(aMode, aListener); |
124 super.init(aMode, aListener); |
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; |
|
130 UIThreadSupport.startInUIThread(new Runnable() |
129 UIThreadSupport.startInUIThread(new Runnable() |
131 { |
130 { |
132 public void run() |
131 public void run() |
133 { |
132 { |
134 uiMain(); |
133 uiMain(); |
143 * This method is executed in UI main thread. |
142 * This method is executed in UI main thread. |
144 */ |
143 */ |
145 private void uiMain() |
144 private void uiMain() |
146 { |
145 { |
147 log("uiMain: thread started"); |
146 log("uiMain: thread started"); |
|
147 iUiThreadExists = true; |
148 try |
148 try |
149 { |
149 { |
150 // Create the necessary views. |
150 // Create the necessary views. |
151 Display display = new Display(); |
151 Display display = new Display(); |
152 StartUpTrace.doTrace("InstallerUiEswt display created"); |
152 StartUpTrace.doTrace("InstallerUiEswt display created"); |
992 log("LaunchAppQuery returns " + result + " for " + aLaunchAppInfo); |
992 log("LaunchAppQuery returns " + result + " for " + aLaunchAppInfo); |
993 return result; |
993 return result; |
994 } |
994 } |
995 |
995 |
996 /** |
996 /** |
|
997 * Executes given Runnable synchronously in the UI thread. |
|
998 */ |
|
999 public void syncExec(Runnable aRunnable) |
|
1000 { |
|
1001 iParent.getDisplay().syncExec(aRunnable); |
|
1002 } |
|
1003 |
|
1004 /** |
997 * Returns string title basing on mode of this InstallerUi. |
1005 * Returns string title basing on mode of this InstallerUi. |
998 */ |
1006 */ |
999 protected String getTitle() |
1007 protected String getTitle() |
1000 { |
1008 { |
1001 String result = null; |
1009 String result = null; |