Ignore:
Timestamp:
Jan 29, 2013, 1:34:16 PM (12 years ago)
Author:
alloc
Message:

AEI2 0.99i:

  • Lots of refactorings for the GUI:
    • Global type for the mod info box (Main, Tools, Core)
    • Same table for Main, Tools, Core
File:
1 edited

Legend:

Unmodified
Added
Removed
  • AE/installer2/src/net/oni2/aeinstaller/backend/packages/PackageManager.java

    r648 r658  
    1010import java.util.HashMap;
    1111import java.util.HashSet;
    12 import java.util.TreeMap;
    1312import java.util.TreeSet;
    1413import java.util.Vector;
    15 
    16 import com.thoughtworks.xstream.XStream;
    17 import com.thoughtworks.xstream.io.xml.StaxDriver;
    1814
    1915import net.oni2.aeinstaller.backend.Paths;
     
    2218import net.oni2.aeinstaller.backend.depot.model.TaxonomyTerm;
    2319import net.oni2.aeinstaller.backend.oni.Installer;
     20
     21import com.thoughtworks.xstream.XStream;
     22import com.thoughtworks.xstream.io.xml.StaxDriver;
    2423
    2524/**
     
    217216         * @return Collection of tools valid on this platform and not core
    218217         */
    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>();
    221220                for (Package m : tools.values())
    222221                        if (m.isValidOnPlatform() && !m.isCorePackage())
    223                                 res.put(m.getName(), m);
     222                                res.add(m);
    224223                return res;
    225224        }
Note: See TracChangeset for help on using the changeset viewer.