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 608 by alloc, Mon Jan 14 17:49:25 2013 UTC vs.
Revision 611 by alloc, Mon Jan 14 18:51:25 2013 UTC

# Line 51 | Line 51 | import net.oni2.aeinstaller.backend.mods
51   import net.oni2.aeinstaller.backend.mods.download.ModDownloaderListener;
52   import net.oni2.aeinstaller.backend.oni.InstallProgressListener;
53   import net.oni2.aeinstaller.backend.oni.Installer;
54 + import net.oni2.aeinstaller.backend.oni.OniSplit;
55   import net.oni2.aeinstaller.gui.about.AboutDialog;
56   import net.oni2.aeinstaller.gui.downloadwindow.Downloader;
57   import net.oni2.aeinstaller.gui.modtable.DownloadSizeListener;
# Line 348 | Line 349 | public class MainWin extends JFrame impl
349                  model.revertSelection();
350          }
351  
352 +        @SuppressWarnings("unused")
353 +        private void checkDotNet() {
354 +                if (!OniSplit.isDotNETInstalled()) {
355 +                        HTMLLinkLabel hll = new HTMLLinkLabel();
356 +                        String dlUrl = "";
357 +                        switch (Settings.getPlatform()) {
358 +                                case WIN:
359 +                                        switch (Settings.getArchitecture()) {
360 +                                                case X86:
361 +                                                        dlUrl = "http://download.microsoft.com/download/c/6/e/c6e88215-0178-4c6c-b5f3-158ff77b1f38/NetFx20SP2_x86.exe";
362 +                                                        break;
363 +                                                case AMD64:
364 +                                                        dlUrl = "http://download.microsoft.com/download/c/6/e/c6e88215-0178-4c6c-b5f3-158ff77b1f38/NetFx20SP2_x64.exe";
365 +                                                        break;
366 +                                        }
367 +                                        break;
368 +                                default:
369 +                                        dlUrl = "http://www.go-mono.com/mono-downloads/download.html";
370 +                        }
371 +                        hll.setText(bundle.getString("dotNetMissing.text").replaceAll("%1",
372 +                                        String.format("<a href=\"%s\">%s</a>", dlUrl, dlUrl)));
373 +                        JOptionPane.showMessageDialog(this, hll,
374 +                                        bundle.getString("dotNetMissing.title"),
375 +                                        JOptionPane.ERROR_MESSAGE);
376 +                        exit();
377 +                }
378 +        }
379 +
380          @DoInBackground(progressMessage = "mandatoryFiles.title", cancelable = false, indeterminateProgress = false)
381          private void checkMandatoryFiles(final BackgroundEvent evt) {
382                  TreeSet<Mod> mand = new TreeSet<Mod>();

Diff Legend

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