Changeset 617 for AE/installer2/src/net
- Timestamp:
- Jan 15, 2013, 2:20:48 AM (12 years ago)
- Location:
- AE/installer2/src/net/oni2/aeinstaller
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/AEInstaller.properties
r616 r617 1 1 appname=AE Installer 2 2 appversion=0.7 82 appversion=0.79 3 3 4 4 invalidPath.title=Wrong directory -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r616 r617 388 388 389 389 @DoInBackground(progressMessage = "installing.title", cancelable = false, indeterminateProgress = false) 390 private voidinstall(final BackgroundEvent evt) {390 private boolean install(final BackgroundEvent evt) { 391 391 TreeSet<Mod> mods = new TreeSet<Mod>(); 392 392 mods.addAll(ModManager.getInstance().getMandatoryMods()); … … 405 405 System.out.println("Download files: " + toDownload.toString()); 406 406 Downloader dl = new Downloader(toDownload); 407 dl.setVisible(true); 408 if (!dl.isFinished()) 409 break; 407 try { 408 dl.setVisible(true); 409 if (!dl.isFinished()) 410 break; 411 } finally { 412 dl.dispose(); 413 } 410 414 } 411 415 HashMap<Mod, HashSet<Mod>> dependencies = ModManager.getInstance() … … 430 434 } 431 435 } 432 436 433 437 if (instReady) { 434 438 System.out.println("Install mods: " + mods.toString()); … … 443 447 } 444 448 }); 445 446 JOptionPane.showMessageDialog(this, 447 bundle.getString("installDone.text"), 448 bundle.getString("installDone.title"), 449 JOptionPane.INFORMATION_MESSAGE); 450 } 449 return true; 450 } 451 return false; 452 } 453 454 @SuppressWarnings("unused") 455 private void installDone() { 456 JOptionPane.showMessageDialog(this, 457 bundle.getString("installDone.text"), 458 bundle.getString("installDone.title"), 459 JOptionPane.INFORMATION_MESSAGE); 451 460 } 452 461 -
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.yml
r616 r617 49 49 JTable(name=tblMods, visible=false) 50 50 - JButton(name=btnRevertSelection, icon=img.undo16, text=btnRevertSelection.text, toolTipText=btnRevertSelection.tooltip, onAction=[revertSelection]) 51 - JButton(name=btnInstall, icon=img.install, text=btnInstall.text, toolTipText=btnInstall.tooltip, onAction=[install ])51 - JButton(name=btnInstall, icon=img.install, text=btnInstall.text, toolTipText=btnInstall.tooltip, onAction=[install,installDone]) 52 52 - JLabel(name=lblDownloadSize, text=lblDownloadSize.text) 53 53 - JLabel(name=lblDownloadSizeVal)
Note:
See TracChangeset
for help on using the changeset viewer.