Changeset 648 for AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager
- Timestamp:
- Jan 25, 2013, 1:15:31 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/gui/toolmanager/ToolManager.java
r646 r648 28 28 import net.oni2.aeinstaller.backend.Settings; 29 29 import net.oni2.aeinstaller.backend.SizeFormatter; 30 import net.oni2.aeinstaller.backend. mods.Mod;31 import net.oni2.aeinstaller.backend. mods.ModManager;30 import net.oni2.aeinstaller.backend.packages.Package; 31 import net.oni2.aeinstaller.backend.packages.PackageManager; 32 32 import net.oni2.aeinstaller.backend.oni.Installer; 33 33 import net.oni2.aeinstaller.gui.HTMLLinkLabel; … … 97 97 98 98 DefaultListModel dlm = new DefaultListModel(); 99 TreeMap<String, Mod> tools = ModManager.getInstance().getTools();99 TreeMap<String, Package> tools = PackageManager.getInstance().getTools(); 100 100 for (String name : tools.keySet()) 101 101 dlm.addElement(tools.get(name)); … … 113 113 private void install() { 114 114 Object o = lstTools.getSelectedValue(); 115 if (o instanceof Mod) {116 Mod theMod = (Mod) o;115 if (o instanceof Package) { 116 Package theMod = (Package) o; 117 117 118 118 if (theMod.isInstalled()) { 119 TreeSet< Mod> tools = new TreeSet<Mod>();119 TreeSet<Package> tools = new TreeSet<Package>(); 120 120 tools.add(theMod); 121 121 Installer.uninstallTools(tools); … … 130 130 } 131 131 132 TreeSet< Mod> toDownload = new TreeSet<Mod>();132 TreeSet<Package> toDownload = new TreeSet<Package>(); 133 133 toDownload.add(theMod); 134 134 … … 143 143 } 144 144 145 TreeSet< Mod> tools = new TreeSet<Mod>();145 TreeSet<Package> tools = new TreeSet<Package>(); 146 146 tools.add(theMod); 147 147 Installer.installTools(tools); … … 164 164 btnInstall.setIcon(icoInstall); 165 165 166 if (lstTools.getSelectedValue() instanceof Mod) {167 Mod m = (Mod) lstTools.getSelectedValue();166 if (lstTools.getSelectedValue() instanceof Package) { 167 Package m = (Package) lstTools.getSelectedValue(); 168 168 lblTitleVal.setText(m.getName()); 169 169 lblCreatorVal.setText(m.getCreator());
Note:
See TracChangeset
for help on using the changeset viewer.