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
{\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
\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