| 487 |
|
lblDownloadSizeVal.setText(SizeFormatter.format(newSize, 2)); |
| 488 |
|
} |
| 489 |
|
|
| 490 |
< |
@DoInBackground(progressMessage = "initializingEdition.title", cancelable = false, indeterminateProgress = false) |
| 491 |
< |
private void initialize(final BackgroundEvent evt) { |
| 490 |
> |
@SuppressWarnings("unused") |
| 491 |
> |
private void checkInitialize() { |
| 492 |
|
if (!Installer.isEditionInitialized()) { |
| 493 |
|
int res = JOptionPane.showConfirmDialog(this, |
| 494 |
|
bundle.getString("askInitialize.text"), |
| 497 |
|
if (res == JOptionPane.NO_OPTION) { |
| 498 |
|
saveLocalData(); |
| 499 |
|
exit(); |
| 500 |
– |
} else { |
| 501 |
– |
Installer.initializeEdition(new InstallProgressListener() { |
| 502 |
– |
@Override |
| 503 |
– |
public void installProgressUpdate(int done, int total, |
| 504 |
– |
String step) { |
| 505 |
– |
evt.setProgressEnd(total); |
| 506 |
– |
evt.setProgressValue(done); |
| 507 |
– |
evt.setProgressMessage(step); |
| 508 |
– |
} |
| 509 |
– |
}); |
| 500 |
|
} |
| 501 |
|
} |
| 502 |
|
} |
| 503 |
|
|
| 504 |
+ |
@DoInBackground(progressMessage = "initializingEdition.title", cancelable = false, indeterminateProgress = false) |
| 505 |
+ |
private void initialize(final BackgroundEvent evt) { |
| 506 |
+ |
if (!Installer.isEditionInitialized()) { |
| 507 |
+ |
Installer.initializeEdition(new InstallProgressListener() { |
| 508 |
+ |
@Override |
| 509 |
+ |
public void installProgressUpdate(int done, int total, |
| 510 |
+ |
String step) { |
| 511 |
+ |
evt.setProgressEnd(total); |
| 512 |
+ |
evt.setProgressValue(done); |
| 513 |
+ |
evt.setProgressMessage(step); |
| 514 |
+ |
} |
| 515 |
+ |
}); |
| 516 |
+ |
} |
| 517 |
+ |
} |
| 518 |
+ |
|
| 519 |
|
private Vector<String> getBasicOniLaunchParams() { |
| 520 |
|
Vector<String> params = new Vector<String>(); |
| 521 |
|
switch (Settings.getPlatform()) { |