javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/InstallationNotifier.java
equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
87 { |
87 { |
88 iInstallerUi.started(); |
88 iInstallerUi.started(); |
89 } |
89 } |
90 catch (Throwable t) |
90 catch (Throwable t) |
91 { |
91 { |
92 Log.logError("InstallerUi.started threw exception", t); |
92 Log.logError( |
|
93 "InstallationNotifier: InstallerUi.started threw exception", t); |
93 } |
94 } |
94 } |
95 } |
95 } |
96 } |
96 |
97 |
97 /** |
98 /** |
130 { |
131 { |
131 iInstallerUi.ended(); |
132 iInstallerUi.ended(); |
132 } |
133 } |
133 catch (Throwable t) |
134 catch (Throwable t) |
134 { |
135 { |
135 Log.logError("InstallerUi.ended threw exception", t); |
136 Log.logError( |
|
137 "InstallationNotifier: InstallerUi.ended threw exception", t); |
136 } |
138 } |
137 } |
139 } |
138 if (iSifNotifier != null) |
140 if (iSifNotifier != null) |
139 { |
141 { |
140 // After this SifNotifier is no longer used, destroy it. |
142 // After this SifNotifier is no longer used, destroy it. |
178 { |
180 { |
179 iInstallerUi.error(installerException); |
181 iInstallerUi.error(installerException); |
180 } |
182 } |
181 catch (Throwable t) |
183 catch (Throwable t) |
182 { |
184 { |
183 Log.logError("InstallerUi.error threw exception", t); |
185 Log.logError( |
|
186 "InstallationNotifier: InstallerUi.error threw exception", t); |
184 } |
187 } |
185 } |
188 } |
186 } |
189 } |
187 |
190 |
188 /** |
191 /** |
267 { |
270 { |
268 iInstallerUi.updateProgress(currentPercentage); |
271 iInstallerUi.updateProgress(currentPercentage); |
269 } |
272 } |
270 catch (Throwable t) |
273 catch (Throwable t) |
271 { |
274 { |
272 Log.logError("InstallerUi.updateProgress threw exception", t); |
275 Log.logError( |
|
276 "InstallationNotifier: InstallerUi.updateProgress threw exception", t); |
273 } |
277 } |
274 } |
278 } |
275 if (iSifNotifier != null) |
279 if (iSifNotifier != null) |
276 { |
280 { |
277 Log.log("InstallationNotifier.set: update SifNotifier to " + |
281 Log.log("InstallationNotifier.set: update SifNotifier to " + |
281 iSifNotifier.notifyProgress( |
285 iSifNotifier.notifyProgress( |
282 iSifNotifier.SUB_OP_NO, currentPercentage, 100); |
286 iSifNotifier.SUB_OP_NO, currentPercentage, 100); |
283 } |
287 } |
284 catch (Throwable t) |
288 catch (Throwable t) |
285 { |
289 { |
286 Log.logError("SifNotifier.notifyProgress threw exception", t); |
290 Log.logError( |
|
291 "InstallationNotifier: SifNotifier.notifyProgress threw exception", t); |
287 } |
292 } |
288 } |
293 } |
289 } |
294 } |
290 } |
295 } |
291 |
296 |
371 Log.log("Deleted property: Uid: " + aCategory + |
376 Log.log("Deleted property: Uid: " + aCategory + |
372 ", key: 0x" + Long.toString(aKey, 16)); |
377 ", key: 0x" + Long.toString(aKey, 16)); |
373 } |
378 } |
374 catch (Exception ex) |
379 catch (Exception ex) |
375 { |
380 { |
376 Log.logError("Deleting property failed", ex); |
381 Log.logError( |
|
382 "InstallationNotifier: Deleting property failed", ex); |
377 } |
383 } |
378 } |
384 } |
379 } |
385 } |