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 600 by alloc, Wed Jan 9 23:12:01 2013 UTC vs.
Revision 602 by alloc, Thu Jan 10 15:39:53 2013 UTC

# Line 263 | Line 263 | public class MainWin extends JFrame impl
263                                  JOptionPane.INFORMATION_MESSAGE);
264          }
265  
266 +        @DoInBackground(progressMessage = "mandatoryFiles.title", cancelable = false, indeterminateProgress = false)
267 +        private void checkMandatoryFiles(final BackgroundEvent evt) {
268 +                System.out.println("Tools:");
269 +                for (Mod m : ModManager.getInstance().getTools()) {
270 +                        System.out.format("  %05d %s", m.getPackageNumber(), m.getName());
271 +                }
272 +                System.out.println();
273 +                
274 +                System.out.println("Mandatory tools:");
275 +                for (Mod m : ModManager.getInstance().getMandatoryTools()) {
276 +                        System.out.format("  %05d %s", m.getPackageNumber(), m.getName());
277 +                }
278 +        }
279 +
280          @DoInBackground(progressMessage = "installing.title", cancelable = false, indeterminateProgress = false)
281          private void install(final BackgroundEvent evt) {
282 +                // TODO: Conflicts/Dependencies
283 +
284                  TreeSet<Mod> mods = new TreeSet<Mod>();
285 <                mods.addAll(ModManager.getInstance().getDefaultMods());
285 >                mods.addAll(ModManager.getInstance().getMandatoryMods());
286                  mods.addAll(model.getSelectedMods());
287  
288                  System.out.println("Install mods:");
# Line 283 | Line 299 | public class MainWin extends JFrame impl
299                                  evt.setProgressMessage(step);
300                          }
301                  });
286
287                // TODO method stub
288                JOptionPane.showMessageDialog(this, "install", "todo",
289                                JOptionPane.INFORMATION_MESSAGE);
302          }
303  
304          private void modSelection(Mod m) {

Diff Legend

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