felix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dsav...@apache.org
Subject svn commit: r795375 - /felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
Date Sat, 18 Jul 2009 14:25:16 GMT
Author: dsavage
Date: Sat Jul 18 14:25:16 2009
New Revision: 795375

URL: http://svn.apache.org/viewvc?rev=795375&view=rev
Log:
Fix for FELIX-1381

Modified:
    felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java

Modified: felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
URL: http://svn.apache.org/viewvc/felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java?rev=795375&r1=795374&r2=795375&view=diff
==============================================================================
--- felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
(original)
+++ felix/trunk/sigil/eclipse/core/src/org/apache/felix/sigil/eclipse/model/util/JavaHelper.java
Sat Jul 18 14:25:16 2009
@@ -27,6 +27,7 @@
 import java.util.ArrayList;
 import java.util.Collection;
 import java.util.Collections;
+import java.util.Comparator;
 import java.util.HashMap;
 import java.util.HashSet;
 import java.util.Iterator;
@@ -321,6 +322,12 @@
 			}
 		}
 
+		Collections.sort(entries, new Comparator<IClasspathEntry>() {
+			public int compare(IClasspathEntry o1, IClasspathEntry o2) {
+				return o1.toString().compareTo(o2.toString());
+			}
+		});
+		
 		monitor.worked(1);
 		monitor.done();
 



Mime
View raw message