ViewVC Help
View File | Revision Log | View Changeset | Root Listing
root/Oni2/java/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
(Generate patch)

Comparing AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java (file contents):
Revision 616 by alloc, Tue Jan 15 00:57:48 2013 UTC vs.
Revision 617 by alloc, Tue Jan 15 01:20:48 2013 UTC

# Line 387 | Line 387 | public class MainWin extends JFrame impl
387          }
388  
389          @DoInBackground(progressMessage = "installing.title", cancelable = false, indeterminateProgress = false)
390 <        private void install(final BackgroundEvent evt) {
390 >        private boolean install(final BackgroundEvent evt) {
391                  TreeSet<Mod> mods = new TreeSet<Mod>();
392                  mods.addAll(ModManager.getInstance().getMandatoryMods());
393                  mods.addAll(model.getSelectedMods());
# Line 404 | Line 404 | public class MainWin extends JFrame impl
404                          if (toDownload.size() > 0) {
405                                  System.out.println("Download files: " + toDownload.toString());
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 >                                }
414                          }
415                          HashMap<Mod, HashSet<Mod>> dependencies = ModManager.getInstance()
416                                          .checkDependencies(mods);
# Line 429 | Line 433 | public class MainWin extends JFrame impl
433                                  }
434                          }
435                  }
436 <
436 >                
437                  if (instReady) {
438                          System.out.println("Install mods: " + mods.toString());
439  
# Line 442 | Line 446 | public class MainWin extends JFrame impl
446                                          evt.setProgressMessage(step);
447                                  }
448                          });
449 <
446 <                        JOptionPane.showMessageDialog(this,
447 <                                        bundle.getString("installDone.text"),
448 <                                        bundle.getString("installDone.title"),
449 <                                        JOptionPane.INFORMATION_MESSAGE);
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);
460          }
461  
462          private void modSelection(Mod m) {

Diff Legend

Removed lines
+ Added lines
< Changed lines (old)
> Changed lines (new)