javamanager/javainstaller/installer/javasrc/com/nokia/mj/impl/installer/midp2/install/steps/StartProgressNotifications.java
equal
deleted
inserted
replaced
33 { |
33 { |
34 public void execute(ExeBall aBall) |
34 public void execute(ExeBall aBall) |
35 { |
35 { |
36 InstallBall ball = (InstallBall)aBall; |
36 InstallBall ball = (InstallBall)aBall; |
37 Log.log("Starting progress notifications..."); |
37 Log.log("Starting progress notifications..."); |
|
38 |
|
39 if (ball.iPreinstallation) |
|
40 { |
|
41 Log.log("SifNotifier disabled during preinstallation."); |
|
42 return; |
|
43 } |
38 |
44 |
39 if (!SifNotifier.enabled()) |
45 if (!SifNotifier.enabled()) |
40 { |
46 { |
41 Log.log("SifNotifier disabled."); |
47 Log.log("SifNotifier disabled."); |
42 return; |
48 return; |
97 appNames, appIcons, ball.iSuite.calculateInitialSize(), |
103 appNames, appIcons, ball.iSuite.calculateInitialSize(), |
98 iconDir, componentIcon); |
104 iconDir, componentIcon); |
99 } |
105 } |
100 catch (Throwable t) |
106 catch (Throwable t) |
101 { |
107 { |
102 Log.logError("StartProgressNotifications: SifNotifier.notifyStart failed", t); |
108 Log.log("StartProgressNotifications: SifNotifier.notifyStart failed", t); |
|
109 try |
|
110 { |
|
111 ball.iSifNotifier.destroy(); |
|
112 } |
|
113 catch (Throwable t2) |
|
114 { |
|
115 Log.logError("StartProgressNotifications: SifNotifier.destroy failed", t2); |
|
116 } |
|
117 ball.iSifNotifier = null; |
103 } |
118 } |
104 |
|
105 // Set SifNotifier for the listeners that should use it. |
119 // Set SifNotifier for the listeners that should use it. |
106 ball.iInstallationNotifier.setSifNotifier(ball.iSifNotifier); |
120 ball.iInstallationNotifier.setSifNotifier(ball.iSifNotifier); |
107 } |
121 } |
108 |
122 |
109 public void cancel(ExeBall aBall) |
123 public void cancel(ExeBall aBall) |