From: amwaterhouse Date: Tue, 29 Nov 2005 17:59:53 +0000 (+0000) Subject: Parse id before making URL X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=841fa23b3316e51f8f60c4190a7c204bc3066b03;p=jalview.git Parse id before making URL --- 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() +