JAL-1667 updated the collection type for searchSummaryFields and structureSummaryFiel...
authortcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 27 Mar 2015 13:22:09 +0000 (13:22 +0000)
committertcofoegbu <tcnofoegbu@dundee.ac.uk>
Fri, 27 Mar 2015 13:22:09 +0000 (13:22 +0000)
src/jalview/jbgui/PDBDocFieldPreferences.java

index 2021d0b..90abbfb 100644 (file)
@@ -4,7 +4,7 @@ import jalview.ws.dbsources.PDBRestClient.PDBDocField;
 
 import java.util.Collection;
 import java.util.HashMap;
-import java.util.HashSet;
+import java.util.LinkedHashSet;
 
 import javax.swing.JScrollPane;
 import javax.swing.JTable;
@@ -20,9 +20,9 @@ public class PDBDocFieldPreferences extends JScrollPane
 
   private HashMap<String, PDBDocField> map = new HashMap<String, PDBDocField>();
 
-  private static Collection<PDBDocField> searchSummaryFields = new HashSet<PDBDocField>();
+  private static Collection<PDBDocField> searchSummaryFields = new LinkedHashSet<PDBDocField>();
 
-  private static Collection<PDBDocField> structureSummaryFields = new HashSet<PDBDocField>();
+  private static Collection<PDBDocField> structureSummaryFields = new LinkedHashSet<PDBDocField>();
 
   public enum PreferenceSource
   {