JAL-2282 Force double-clicking to use sequence_id cases and not accession_id
authorkiramt <k.mourao@dundee.ac.uk>
Mon, 31 Oct 2016 09:56:36 +0000 (09:56 +0000)
committerkiramt <k.mourao@dundee.ac.uk>
Tue, 1 Nov 2016 12:08:12 +0000 (12:08 +0000)
cases

src/jalview/appletgui/IdPanel.java
src/jalview/gui/IdPanel.java

index 2cb3060..05c2810 100755 (executable)
@@ -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());
index a65be7b..d68d9a7 100755 (executable)
@@ -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());