From 524cc1554c04aea0eefab3a86382fa698bf4b4fe Mon Sep 17 00:00:00 2001 From: kiramt Date: Mon, 31 Oct 2016 09:56:36 +0000 Subject: [PATCH] Force double-clicking to use sequence_id cases and not accession_id cases --- src/jalview/appletgui/IdPanel.java | 8 ++++++++ src/jalview/gui/IdPanel.java | 8 ++++++++ 2 files changed, 16 insertions(+) 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()); -- 1.7.10.2