jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1346563 - in /jmeter/trunk: src/core/org/apache/jmeter/functions/gui/FunctionHelper.java xdocs/changes.xml
Date Tue, 05 Jun 2012 20:10:10 GMT
Author: pmouawad
Date: Tue Jun  5 20:10:10 2012
New Revision: 1346563

URL: http://svn.apache.org/viewvc?rev=1346563&view=rev
Log:
Bug 53364 - Sort list of Functions in Function Helper Dialog

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/functions/gui/FunctionHelper.java
    jmeter/trunk/xdocs/changes.xml

Modified: jmeter/trunk/src/core/org/apache/jmeter/functions/gui/FunctionHelper.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/functions/gui/FunctionHelper.java?rev=1346563&r1=1346562&r2=1346563&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/functions/gui/FunctionHelper.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/functions/gui/FunctionHelper.java Tue Jun  5 20:10:10
2012
@@ -22,6 +22,8 @@ import java.awt.BorderLayout;
 import java.awt.FlowLayout;
 import java.awt.event.ActionEvent;
 import java.awt.event.ActionListener;
+import java.util.Arrays;
+import java.util.Comparator;
 import java.util.List;
 import javax.swing.JButton;
 import javax.swing.JDialog;
@@ -85,7 +87,13 @@ public class FunctionHelper extends JDia
     }
 
     private void initializeFunctionList() {
-        functionList = new JLabeledChoice(JMeterUtils.getResString("choose_function"), CompoundVariable.getFunctionNames());
//$NON-NLS-1$
+        String[] functionNames = CompoundVariable.getFunctionNames();
+        Arrays.sort(functionNames, new Comparator<String>() {
+            public int compare(String o1, String o2) {
+                return o1.compareToIgnoreCase(o2);
+            }
+        });
+        functionList = new JLabeledChoice(JMeterUtils.getResString("choose_function"), functionNames);
//$NON-NLS-1$
         functionList.addChangeListener(this);
     }
 

Modified: jmeter/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/xdocs/changes.xml?rev=1346563&r1=1346562&r2=1346563&view=diff
==============================================================================
--- jmeter/trunk/xdocs/changes.xml (original)
+++ jmeter/trunk/xdocs/changes.xml Tue Jun  5 20:10:10 2012
@@ -126,6 +126,7 @@ or a Debug Sampler with all fields set t
 
 <h3>General</h3>
 <ul>
+<li><bugzilla>53364</bugzilla> - Sort list of Functions in Function Helper
Dialog</li>
 </ul>
 
 <h2>Non-functional changes</h2>



Mime
View raw message