Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rapicault2008-03-04 21:14:22 +0000
committerPascal Rapicault2008-03-04 21:14:22 +0000
commit761a2ca5ca41bc57d5a1115272127448d875617f (patch)
tree4444d284e181f17cd4f818d73ec670a3f57bbf65 /bundles/org.eclipse.equinox.simpleconfigurator.manipulator
parent546fcf8b812668b562825189da020d95b5a6c48d (diff)
downloadrt.equinox.p2-761a2ca5ca41bc57d5a1115272127448d875617f.tar.gz
rt.equinox.p2-761a2ca5ca41bc57d5a1115272127448d875617f.tar.xz
rt.equinox.p2-761a2ca5ca41bc57d5a1115272127448d875617f.zip
Bug 221403 - Sorting the bundle info filev20080304-1641
Diffstat (limited to 'bundles/org.eclipse.equinox.simpleconfigurator.manipulator')
-rw-r--r--bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
index e11dcfc51..e070319cf 100644
--- a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
+++ b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/SimpleConfiguratorManipulatorImpl.java
@@ -465,6 +465,15 @@ public class SimpleConfiguratorManipulatorImpl implements ConfiguratorManipulato
}
}
+ Collections.sort(bundleInfoList, new Comparator() {
+ public int compare(Object o1, Object o2) {
+ if (o1 instanceof BundleInfo && o2 instanceof BundleInfo) {
+ return ((BundleInfo) o1).getSymbolicName().compareTo(((BundleInfo) o2).getSymbolicName());
+ }
+ return 0;
+ }
+ });
+
if (bundleInfoList.size() > 0) {
Utils.createParentDir(outputFile);
bw = new BufferedWriter(new FileWriter(outputFile));

Back to the top