Changeset 626 for AE/installer2/src/net/oni2/aeinstaller/backend/mods
- Timestamp:
- Jan 17, 2013, 8:52:55 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/mods/ModManager.java
r624 r626 10 10 import java.util.HashMap; 11 11 import java.util.HashSet; 12 import java.util.TreeMap; 12 13 import java.util.TreeSet; 13 14 import java.util.Vector; … … 208 209 * @return Collection of tools valid on this platform and not mandatory 209 210 */ 210 public Collection<Mod> getTools() {211 Vector<Mod> res = new Vector<Mod>();211 public TreeMap<String, Mod> getTools() { 212 TreeMap<String, Mod> res = new TreeMap<String, Mod>(); 212 213 for (Mod m : tools.values()) 213 214 if (m.isValidOnPlatform() && !m.isMandatoryMod()) 214 res. add(m);215 res.put(m.getName(), m); 215 216 return res; 216 217 }
Note:
See TracChangeset
for help on using the changeset viewer.