REmove system.out
[jalview.git] / src / jalview / io / WSWUBlastClient.java
index 8e4532c..99beb5f 100755 (executable)
@@ -64,6 +64,7 @@ public class WSWUBlastClient
         for (int i = 0; i < ids.size(); i++)\r
         {\r
             SequenceI sequence = al.findName(ids.get(i).toString());\r
+            System.out.println(ids.get(i).toString());\r
             StringBuffer nonGapped = new StringBuffer();\r
 \r
 \r
@@ -126,7 +127,10 @@ public class WSWUBlastClient
                         {\r
                             maxFound = value;\r
                             buffer.append(" " + id2 + " " + value + "%; ");\r
-                            suggestedIds.put(id1, id2);\r
+                            if(!suggestedIds.containsKey(id1))\r
+                             {\r
+                               suggestedIds.put(id1, id2);\r
+                             }\r
                         }\r
                     }\r
                 }\r
@@ -138,6 +142,8 @@ public class WSWUBlastClient
 \r
     void updateIds()\r
     {\r
+        // This must be outside the run() body as java 1.5\r
+     // will not return any value from the OptionPane to the expired thread.\r
       int reply = JOptionPane.showConfirmDialog(\r
           Desktop.desktop, "Automatically update suggested ids?",\r
           "Auto replace sequence ids", JOptionPane.YES_NO_OPTION);\r