link = links.elementAt(i).toString();\r
final String target = link.substring(0, link.indexOf("|"));\r
item = new MenuItem(target);\r
+ String id = seq.getName();\r
+ if(id.indexOf("|")>-1)\r
+ id = id.substring(id.lastIndexOf("|")+1);\r
+\r
final String url = link.substring(link.indexOf("|")+1, link.indexOf("$SEQUENCE_ID$"))\r
- + seq.getName() +\r
+ + id +\r
link.substring(link.indexOf("$SEQUENCE_ID$") + 13);\r
\r
item.addActionListener(new java.awt.event.ActionListener()\r
//DEFAULT LINK IS FIRST IN THE LINK LIST\r
int seq = av.getIndex(y);\r
String id = av.getAlignment().getSequenceAt(seq).getName();\r
+ if (id.indexOf("|") > -1)\r
+ id = id.substring(id.lastIndexOf("|") + 1);\r
\r
String target = links.elementAt(0).toString();\r
target = target.substring(0, target.indexOf("|"));\r