From: kiramt Date: Mon, 31 Oct 2016 09:56:36 +0000 (+0000) Subject: Force double-clicking to use sequence_id cases and not accession_id X-Git-Tag: Release_2_10_1^2~18^2~2^2~8^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=524cc1554c04aea0eefab3a86382fa698bf4b4fe;p=jalview.git Force double-clicking to use sequence_id cases and not accession_id cases --- diff --git a/src/jalview/appletgui/IdPanel.java b/src/jalview/appletgui/IdPanel.java index 2cb3060..05c2810 100755 --- a/src/jalview/appletgui/IdPanel.java +++ b/src/jalview/appletgui/IdPanel.java @@ -247,6 +247,14 @@ public class IdPanel extends Panel implements MouseListener, continue; } ; + + if (urlLink.usesSeqId()) + { + // this URL requires an accession id, not the name of a sequence + url = null; + continue; + } + if (!urlLink.isValid()) { System.err.println(urlLink.getInvalidMessage()); diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index a65be7b..d68d9a7 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -226,6 +226,14 @@ public class IdPanel extends JPanel implements MouseListener, continue; } ; + + if (urlLink.usesSeqId()) + { + // this URL requires an accession id, not the name of a sequence + url = null; + continue; + } + if (!urlLink.isValid()) { jalview.bin.Cache.log.error(urlLink.getInvalidMessage());