Changeset 643 for AE/installer2/src/net/oni2/aeinstaller/gui
- Timestamp:
- Jan 21, 2013, 5:23:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/MainWin.java
r641 r643 525 525 } 526 526 if (depsLocalString.length() == 0) 527 depsLocalString = bundle.getString("installDependencies.none"); 527 depsLocalString = bundle 528 .getString("installDependencies.none"); 528 529 if (depsDownloadString.length() == 0) 529 depsDownloadString = bundle.getString("installDependencies.none"); 530 depsDownloadString = bundle 531 .getString("installDependencies.none"); 530 532 531 533 int res = JOptionPane.showConfirmDialog(this, String.format( … … 541 543 } 542 544 } else { 543 HashMap<Mod, HashSet<Mod>> conflicts = ModManager.getInstance()545 HashMap<Mod, HashSet<Mod>> incompatibilities = ModManager.getInstance() 544 546 .checkIncompabitilites(mods); 545 if ( conflicts.size() > 0) {547 if (incompatibilities.size() > 0) { 546 548 installState = EInstallState.INCOMPATIBLE; 547 System.err.println("Incompatible mods: " 548 + conflicts.toString()); 549 // TODO: Message window with incompatibilities 549 550 String incompatString = ""; 551 for (Mod m : incompatibilities.keySet()) { 552 if (incompatString.length() > 0) 553 incompatString += "\n"; 554 incompatString += m.getName() + ": "; 555 String confMods = ""; 556 for (Mod mConf : incompatibilities.get(m)) { 557 if (confMods.length() > 0) 558 confMods += ", "; 559 confMods += mConf.getName(); 560 } 561 incompatString += confMods; 562 } 563 564 JOptionPane.showMessageDialog(this, String.format( 565 bundle.getString("installIncompatibilities.text"), 566 incompatString), bundle 567 .getString("installIncompatibilities.title"), 568 JOptionPane.ERROR_MESSAGE); 550 569 break; 551 570 } else {
Note:
See TracChangeset
for help on using the changeset viewer.