### Eclipse Workspace Patch 1.0 #P org.eclipse.rse.ui Index: model/org/eclipse/rse/ui/internal/model/SystemRegistry.java =================================================================== RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.ui/model/org/eclipse/rse/ui/internal/model/SystemRegistry.java,v retrieving revision 1.31 diff -u -r1.31 SystemRegistry.java --- model/org/eclipse/rse/ui/internal/model/SystemRegistry.java 20 Jul 2007 20:15:48 -0000 1.31 +++ model/org/eclipse/rse/ui/internal/model/SystemRegistry.java 23 Jul 2007 14:51:20 -0000 @@ -33,11 +33,13 @@ * Martin Oberhuber (Wind River) - [190271] Move ISystemViewInputProvider to Core * Xuan Chen (IBM) - [194838] Move the code for comparing two objects by absolute name to a common location * David McKnight (IBM) - [165674] Sort subsystem configurations to be in deterministic order + * Martin Oberhuber (Wind River) - [165674] Sort subsystem configurations by Id rather than name ********************************************************************************/ package org.eclipse.rse.ui.internal.model; import java.util.ArrayList; import java.util.Arrays; +import java.util.Comparator; import java.util.Iterator; import java.util.List; import java.util.Vector; @@ -258,9 +260,19 @@ */ public void setSubSystemConfigurationProxies(ISubSystemConfigurationProxy[] proxies) { - subsystemConfigurationProxies = proxies; - //for (int idx=0; idx 0) - { - ISubSystemConfiguration first = firstConfiguration(v); - sorted.add(first); - v.remove(first); - } - return sorted; - } - - private ISubSystemConfiguration firstConfiguration(Vector v) - { - ISubSystemConfiguration first = null; - for (int i = 0; i < v.size(); i++) - { - ISubSystemConfiguration next = (ISubSystemConfiguration)v.get(i); - if (first == null) - { - first = next; - } - else - { - String name1 = first.getName(); - String name2 = next.getName(); - if (name2.compareTo(name1) <= 0) - { - first = next; - } - } - } - return first; - } - // ---------------------------- // USER PREFERENCE METHODS... #P org.eclipse.rse.core Index: src/org/eclipse/rse/core/model/ISystemRegistry.java =================================================================== RCS file: /cvsroot/dsdp/org.eclipse.tm.rse/plugins/org.eclipse.rse.core/src/org/eclipse/rse/core/model/ISystemRegistry.java,v retrieving revision 1.28 diff -u -r1.28 ISystemRegistry.java --- src/org/eclipse/rse/core/model/ISystemRegistry.java 5 Jun 2007 20:59:51 -0000 1.28 +++ src/org/eclipse/rse/core/model/ISystemRegistry.java 23 Jul 2007 14:51:23 -0000 @@ -97,12 +97,12 @@ public ISubSystemConfiguration getSubSystemConfiguration(String id); /** - * Return all subsystem factories which support the given system type. + * Return all subsystem configurations which support the given system type. * If the type is null, returns all. * @param systemType system type to filter - * @param filterDuplicateServiceSubSystemFactories set false by default + * @param filterDuplicateServiceSubSystemConfigurations set false by default */ - public ISubSystemConfiguration[] getSubSystemConfigurationsBySystemType(IRSESystemType systemType, boolean filterDuplicateServiceSubSystemFactories); + public ISubSystemConfiguration[] getSubSystemConfigurationsBySystemType(IRSESystemType systemType, boolean filterDuplicateServiceSubSystemConfigurations); // ---------------------------------- // SYSTEMVIEWINPUTPROVIDER METHODS...