| 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:"); |
| 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) { |