return;\r
}\r
\r
- public void mouseClicked(MouseEvent e) { }\r
+ public void mouseClicked(MouseEvent e)\r
+ {\r
+ if (e.getClickCount() == 2)\r
+ {\r
+ int seq = av.getIndex(e.getY());\r
+ String id = av.getAlignment().getSequenceAt(seq).getName();\r
+\r
+ try{\r
+ jalview.util.BrowserLauncher.openURL(\r
+ "http://srs.ebi.ac.uk/srs7bin/cgi-bin/wgetz?-e+[swall-id:" + id +\r
+ "]+-vn+2");\r
+ }catch(Exception ex){ex.printStackTrace();}\r
+ }\r
+\r
+ }\r
public void mouseEntered(MouseEvent e) { }\r
public void mouseExited (MouseEvent e) { }\r
\r
public void mousePressed(MouseEvent e) {\r
- int x = e.getX();\r
- int y = e.getY();\r
+ if (e.getClickCount() == 2)\r
+ return;\r
\r
+ int y = e.getY();\r
int seq = av.getIndex(y);\r
\r
mouseDown = true;\r