javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt2/ConfirmationViewBase.java
equal
deleted
inserted
replaced
98 { |
98 { |
99 createView(); |
99 createView(); |
100 createCommands(); |
100 createCommands(); |
101 setDefaultCommand(); |
101 setDefaultCommand(); |
102 } |
102 } |
103 iInstallerUi.loadCss(); |
|
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) |
182 } |
182 } |
183 |
183 |
184 if (iOkText != null) |
184 if (iOkText != null) |
185 { |
185 { |
186 iOkCommand = new Button(getCommandComposite(), SWT.PUSH); |
186 iOkCommand = new Button(getCommandComposite(), SWT.PUSH); |
187 if (iCancelText != null) |
|
188 { |
|
189 setCssId(iOkCommand, "softKeyButton"); |
|
190 } |
|
191 else |
|
192 { |
|
193 setCssId(iOkCommand, "softKeyButtonWide"); |
|
194 } |
|
195 GridData gridData = new GridData(GridData.FILL_HORIZONTAL); |
187 GridData gridData = new GridData(GridData.FILL_HORIZONTAL); |
196 gridData.horizontalSpan = horizontalSpan; |
188 gridData.horizontalSpan = horizontalSpan; |
197 iOkCommand.setLayoutData(gridData); |
189 iOkCommand.setLayoutData(gridData); |
198 iOkCommand.addDisposeListener(new DisposeListener() |
190 iOkCommand.addDisposeListener(new DisposeListener() |
199 { |
191 { |
236 } |
228 } |
237 |
229 |
238 if (iCancelText != null) |
230 if (iCancelText != null) |
239 { |
231 { |
240 iCancelCommand = new Button(getCommandComposite(), SWT.PUSH); |
232 iCancelCommand = new Button(getCommandComposite(), SWT.PUSH); |
241 if (iOkText != null) |
|
242 { |
|
243 setCssId(iCancelCommand, "softKeyButton"); |
|
244 } |
|
245 else |
|
246 { |
|
247 setCssId(iCancelCommand, "softKeyButtonWide"); |
|
248 } |
|
249 GridData gridData = new GridData(GridData.FILL_HORIZONTAL); |
233 GridData gridData = new GridData(GridData.FILL_HORIZONTAL); |
250 gridData.horizontalSpan = horizontalSpan; |
234 gridData.horizontalSpan = horizontalSpan; |
251 iCancelCommand.setLayoutData(gridData); |
235 iCancelCommand.setLayoutData(gridData); |
252 iCancelCommand.addDisposeListener(new DisposeListener() |
236 iCancelCommand.addDisposeListener(new DisposeListener() |
253 { |
237 { |