javamanager/javainstaller/installerui/javasrc/com/nokia/mj/impl/installer/ui/eswt2/ProgressView.java
equal
deleted
inserted
replaced
78 |
78 |
79 // Add header. |
79 // Add header. |
80 if (iInstallerUi != null && iInstallerUi.getInstallInfo() != null) |
80 if (iInstallerUi != null && iInstallerUi.getInstallInfo() != null) |
81 { |
81 { |
82 // Add header. |
82 // Add header. |
83 addHeader(aMsg, iInstallerUi.getInstallInfo(), null, false); |
83 addHeader(aMsg, iInstallerUi.getInstallInfo(), null); |
84 } |
84 } |
85 else |
85 else |
86 { |
86 { |
87 setTitle(iMsg); |
87 setTitle(iMsg); |
88 iLabel = createLabel(iMsg, SWT.WRAP); |
88 iLabel = createLabel(iMsg, SWT.WRAP); |
172 getDisplay().syncExec(new Runnable() |
172 getDisplay().syncExec(new Runnable() |
173 { |
173 { |
174 public void run() |
174 public void run() |
175 { |
175 { |
176 // Set horizontalSpan to 2 for one button, |
176 // Set horizontalSpan to 2 for one button, |
177 // and to 1 for one two buttons. |
177 // and to 1 for two buttons. |
178 int horizontalSpan = 2; |
178 int horizontalSpan = 1; |
179 GridData gridData = null; |
179 GridData gridData = null; |
180 /* |
|
181 iHideCommand = new Button(getCommandComposite(), SWT.PUSH); |
180 iHideCommand = new Button(getCommandComposite(), SWT.PUSH); |
182 setCssId(iHideCommand, "softKeyButton"); |
181 setCssId(iHideCommand, "softKeyButton"); |
183 gridData = new GridData(GridData.FILL_HORIZONTAL); |
182 gridData = new GridData(GridData.FILL_HORIZONTAL); |
184 gridData.horizontalSpan = horizontalSpan; |
183 gridData.horizontalSpan = horizontalSpan; |
185 iHideCommand.setLayoutData(gridData); |
184 iHideCommand.setLayoutData(gridData); |
194 { |
193 { |
195 confirmHide(); |
194 confirmHide(); |
196 } |
195 } |
197 }); |
196 }); |
198 addSoftKeyListenerFor(iHideCommand); |
197 addSoftKeyListenerFor(iHideCommand); |
199 */ |
|
200 |
198 |
201 iCancelCommand = new Button(getCommandComposite(), SWT.PUSH); |
199 iCancelCommand = new Button(getCommandComposite(), SWT.PUSH); |
202 setCssId(iCancelCommand, "softKeyButtonWide"); |
200 setCssId(iCancelCommand, "softKeyButton"); |
|
201 //setCssId(iCancelCommand, "softKeyButtonWide"); |
203 gridData = new GridData(GridData.FILL_HORIZONTAL); |
202 gridData = new GridData(GridData.FILL_HORIZONTAL); |
204 gridData.horizontalSpan = horizontalSpan; |
203 gridData.horizontalSpan = horizontalSpan; |
205 iCancelCommand.setLayoutData(gridData); |
204 iCancelCommand.setLayoutData(gridData); |
206 iCancelCommand.setText( |
205 iCancelCommand.setText( |
207 InstallerUiTexts.get(InstallerUiTexts.CANCEL)); |
206 InstallerUiTexts.get(InstallerUiTexts.CANCEL)); |