summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorning.zhang2012-06-11 22:00:14 (EDT)
committer dgao2012-06-11 22:00:14 (EDT)
commitf1471c504fd5531a85a22dc5d91100cf3664d121 (patch)
tree34feba03ec6d6bd5265931d8c6c47b5031d60fd0
parent4f8b4423edb170c0ab4ed4b8d08adfba623d9904 (diff)
downloadorg.eclipse.birt-f1471c504fd5531a85a22dc5d91100cf3664d121.zip
org.eclipse.birt-f1471c504fd5531a85a22dc5d91100cf3664d121.tar.gz
org.eclipse.birt-f1471c504fd5531a85a22dc5d91100cf3664d121.tar.bz2
Sort the format list alphabetically.
-rw-r--r--UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/internal/ui/script/launcher/ScriptMainTab.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/internal/ui/script/launcher/ScriptMainTab.java b/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/internal/ui/script/launcher/ScriptMainTab.java
index c406c2f..55f9712 100644
--- a/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/internal/ui/script/launcher/ScriptMainTab.java
+++ b/UI/org.eclipse.birt.report.debug.ui/src/org/eclipse/birt/report/debug/internal/ui/script/launcher/ScriptMainTab.java
@@ -14,6 +14,7 @@ package org.eclipse.birt.report.debug.internal.ui.script.launcher;
import java.io.File;
import java.util.ArrayList;
import java.util.Arrays;
+import java.util.Collections;
import java.util.List;
import org.eclipse.birt.report.debug.internal.core.launcher.IReportLaunchConstants;
@@ -23,6 +24,7 @@ import org.eclipse.birt.report.debug.ui.DebugUI;
import org.eclipse.birt.report.debug.ui.i18n.Messages;
import org.eclipse.birt.report.designer.core.IReportElementConstants;
import org.eclipse.birt.report.designer.core.model.SessionHandleAdapter;
+import org.eclipse.birt.report.designer.util.AlphabeticallyComparator;
import org.eclipse.birt.report.engine.api.EmitterInfo;
import org.eclipse.birt.report.engine.api.EngineConfig;
import org.eclipse.birt.report.engine.api.ReportEngine;
@@ -534,6 +536,7 @@ public class ScriptMainTab extends AbstractLaunchConfigurationTab implements
temp.add( info.getFormat( ) );
}
}
+ Collections.sort(temp, new AlphabeticallyComparator());
supportedFormats = temp.toArray(new String[temp.size( )] );
}
cmbOutputFormat.setItems( supportedFormats );