Changeset 658 for AE/installer2/src/net/oni2/aeinstaller/backend
- Timestamp:
- Jan 29, 2013, 1:34:16 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
AE/installer2/src/net/oni2/aeinstaller/backend/packages/PackageManager.java
r648 r658 10 10 import java.util.HashMap; 11 11 import java.util.HashSet; 12 import java.util.TreeMap;13 12 import java.util.TreeSet; 14 13 import java.util.Vector; 15 16 import com.thoughtworks.xstream.XStream;17 import com.thoughtworks.xstream.io.xml.StaxDriver;18 14 19 15 import net.oni2.aeinstaller.backend.Paths; … … 22 18 import net.oni2.aeinstaller.backend.depot.model.TaxonomyTerm; 23 19 import net.oni2.aeinstaller.backend.oni.Installer; 20 21 import com.thoughtworks.xstream.XStream; 22 import com.thoughtworks.xstream.io.xml.StaxDriver; 24 23 25 24 /** … … 217 216 * @return Collection of tools valid on this platform and not core 218 217 */ 219 public TreeMap<String,Package> getTools() {220 TreeMap<String, Package> res = new TreeMap<String,Package>();218 public Collection<Package> getTools() { 219 Vector<Package> res = new Vector<Package>(); 221 220 for (Package m : tools.values()) 222 221 if (m.isValidOnPlatform() && !m.isCorePackage()) 223 res. put(m.getName(),m);222 res.add(m); 224 223 return res; 225 224 }
Note:
See TracChangeset
for help on using the changeset viewer.