Parse id before making URL
authoramwaterhouse <Andrew Waterhouse>
Tue, 29 Nov 2005 17:59:53 +0000 (17:59 +0000)
committeramwaterhouse <Andrew Waterhouse>
Tue, 29 Nov 2005 17:59:53 +0000 (17:59 +0000)
src/jalview/gui/PopupMenu.java

index 6fd69f5..7413150 100755 (executable)
@@ -222,6 +222,9 @@ public class PopupMenu extends JPopupMenu
             String link = links.elementAt(i).toString();\r
 \r
             item = new JMenuItem(link.substring(0, link.indexOf("|")));\r
+            String id = sequence.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
                 + sequence.getName() +\r