Changeset 624 for AE/installer2/src/net/oni2/aeinstaller/gui
- Timestamp:
- Jan 16, 2013, 12:22:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r623 r624 322 322 } 323 323 324 @ DoInBackground(progressMessage = "doUpdate.title", cancelable = false, indeterminateProgress = false)325 private void doUpdate( final BackgroundEvent evt) {324 @SuppressWarnings("unused") 325 private void doUpdate() { 326 326 if (execUpdates != null) { 327 // TODO 328 System.out.println("Update: " + execUpdates.toString()); 329 // TODO: install new tools if previously installed 327 Downloader dl = new Downloader(execUpdates); 328 try { 329 dl.setVisible(true); 330 if (dl.isFinished()) { 331 TreeSet<Integer> installed = Installer.getInstalledTools(); 332 TreeSet<Mod> tools = new TreeSet<Mod>(); 333 for (Mod m : execUpdates) 334 if (m.isTool() 335 && installed.contains(m.getPackageNumber())) 336 tools.add(m); 337 if (tools.size() > 0) { 338 Installer.installTools(tools); 339 } 340 } 341 } finally { 342 dl.dispose(); 343 } 330 344 } 331 345 execUpdates = null; … … 414 428 @SuppressWarnings("unused") 415 429 private void tools() { 416 // TODO method stub430 // TODO: Open tools manager 417 431 JOptionPane.showMessageDialog(this, "tools", "todo", 418 432 JOptionPane.INFORMATION_MESSAGE); … … 435 449 ico = new ImageIcon(m.getIconFile().getPath()); 436 450 } else { 437 URL icon = AEInstaller2.class.getResource("images/transparent.png"); 451 URL icon = AEInstaller2.class 452 .getResource("images/transparent.png"); 438 453 ico = new ImageIcon(icon); 439 454 }
Note:
See TracChangeset
for help on using the changeset viewer.