From 841fa23b3316e51f8f60c4190a7c204bc3066b03 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 29 Nov 2005 17:59:53 +0000 Subject: [PATCH] Parse id before making URL --- src/jalview/gui/PopupMenu.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/jalview/gui/PopupMenu.java b/src/jalview/gui/PopupMenu.java index 6fd69f5..7413150 100755 --- a/src/jalview/gui/PopupMenu.java +++ b/src/jalview/gui/PopupMenu.java @@ -222,6 +222,9 @@ public class PopupMenu extends JPopupMenu String link = links.elementAt(i).toString(); item = new JMenuItem(link.substring(0, link.indexOf("|"))); + String id = sequence.getName(); + if(id.indexOf("|")>-1) + id = id.substring(id.lastIndexOf("|")+1); final String url = link.substring(link.indexOf("|")+1, link.indexOf("$SEQUENCE_ID$")) + sequence.getName() + -- 1.7.10.2