JAL-1320 preserve option/parameter order with LinkedHashMap
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 18 Jun 2013 20:57:02 +0000 (21:57 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Tue, 18 Jun 2013 20:57:02 +0000 (21:57 +0100)
src/jalview/gui/OptsAndParamsPage.java

index d5da323..93f5ce2 100644 (file)
@@ -783,9 +783,9 @@ public class OptsAndParamsPage
 
   URL linkImageURL = getClass().getResource("/images/link.gif");
 
-  Map<String, OptionBox> optSet = new Hashtable<String, OptionBox>();
+  Map<String, OptionBox> optSet = new java.util.LinkedHashMap<String, OptionBox>();
 
-  Map<String, ParamBox> paramSet = new Hashtable<String, ParamBox>();
+  Map<String, ParamBox> paramSet = new java.util.LinkedHashMap<String, ParamBox>();
 
   public Map<String, OptionBox> getOptSet()
   {