From: amwaterhouse Date: Tue, 16 Nov 2004 15:17:27 +0000 (+0000) Subject: Halfway to wrapalignment, X-Git-Tag: Release_2_0~931 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=491ef50a485fbff6e610c0cd138e5cf89538aa3d;p=jalview.git Halfway to wrapalignment, --- diff --git a/src/jalview/gui/IdPanel.java b/src/jalview/gui/IdPanel.java index 26d4199..5e15283 100755 --- a/src/jalview/gui/IdPanel.java +++ b/src/jalview/gui/IdPanel.java @@ -73,14 +73,29 @@ public class IdPanel extends JPanel implements MouseListener, MouseMotionListene return; } - public void mouseClicked(MouseEvent e) { } + public void mouseClicked(MouseEvent e) + { + if (e.getClickCount() == 2) + { + int seq = av.getIndex(e.getY()); + String id = av.getAlignment().getSequenceAt(seq).getName(); + + try{ + jalview.util.BrowserLauncher.openURL( + "http://srs.ebi.ac.uk/srs7bin/cgi-bin/wgetz?-e+[swall-id:" + id + + "]+-vn+2"); + }catch(Exception ex){ex.printStackTrace();} + } + + } public void mouseEntered(MouseEvent e) { } public void mouseExited (MouseEvent e) { } public void mousePressed(MouseEvent e) { - int x = e.getX(); - int y = e.getY(); + if (e.getClickCount() == 2) + return; + int y = e.getY(); int seq = av.getIndex(y); mouseDown = true;