javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt2/ConfirmationViewBase.java
equal
deleted
inserted
replaced
88 if (isDisposed()) |
88 if (isDisposed()) |
89 { |
89 { |
90 return false; |
90 return false; |
91 } |
91 } |
92 // Open the dialog from the UI thread. |
92 // Open the dialog from the UI thread. |
93 getComposite().getDisplay().syncExec |
93 getComposite().getDisplay().syncExec(new Runnable() |
94 (new Runnable() |
|
95 { |
94 { |
96 public void run() |
95 public void run() |
97 { |
96 { |
98 if (iOkCommand == null && iCancelCommand == null) |
97 if (iOkCommand == null && iCancelCommand == null) |
99 { |
98 { |
100 createView(); |
99 createView(); |
101 createCommands(); |
100 createCommands(); |
102 setDefaultCommand(); |
101 setDefaultCommand(); |
103 } |
102 } |
104 setVisible(true); |
103 setVisible(true); |
|
104 iInstallerUi.unhide(); |
105 } |
105 } |
106 }); |
106 }); |
107 // The UI thread must not be blocked. Let's wait for the answer |
107 // The UI thread must not be blocked. Let's wait for the answer |
108 // in the client thread. |
108 // in the client thread. |
109 synchronized (iSynchObject) |
109 synchronized (iSynchObject) |
121 { |
121 { |
122 // Widget got disposed, no confirmation available. |
122 // Widget got disposed, no confirmation available. |
123 return false; |
123 return false; |
124 } |
124 } |
125 // Hide the dialog. |
125 // Hide the dialog. |
126 getComposite().getDisplay().syncExec |
126 getComposite().getDisplay().syncExec(new Runnable() |
127 (new Runnable() |
|
128 { |
127 { |
129 public void run() |
128 public void run() |
130 { |
129 { |
131 if (commandDisposed()) |
130 if (commandDisposed()) |
132 { |
131 { |