From: jprocter Date: Tue, 26 Aug 2008 09:14:11 +0000 (+0000) Subject: tooltip for fetch db refs and more generic regex for 'Extract scores...' X-Git-Tag: Release_2_4~10 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=50ea78c7b98de7614cd386956e9aa0ee73dd7936;p=jalview.git tooltip for fetch db refs and more generic regex for 'Extract scores...' --- diff --git a/src/jalview/gui/AlignFrame.java b/src/jalview/gui/AlignFrame.java index 10a9c95..442a417 100755 --- a/src/jalview/gui/AlignFrame.java +++ b/src/jalview/gui/AlignFrame.java @@ -3546,7 +3546,7 @@ public class AlignFrame webService.removeAll(); // Temporary hack - DBRef Fetcher always top level ws entry. JMenuItem rfetch = new JMenuItem("Fetch DB References"); - rfetch.setToolTipText("Retrieve and parse uniprot records for the alignment or the currently selected sequences"); + rfetch.setToolTipText("Retrieve and parse sequence database records for the alignment or the currently selected sequences"); webService.add(rfetch); rfetch.addActionListener(new ActionListener() { @@ -3981,8 +3981,9 @@ public void drop(DropTargetDropEvent evt) protected void extractScores_actionPerformed(ActionEvent e) { ParseProperties pp = new jalview.analysis.ParseProperties(viewport.alignment); - if (pp.getScoresFromDescription("col", "score column ", "\\W*([-+]?\\d*\\.?\\d*e?-?\\d*)\\W+([-+]?\\d*\\.?\\d*e?-?\\d*)", true)>0) - { + // TODO: verify regex and introduce GUI dialog for version 2.5 + //if (pp.getScoresFromDescription("col", "score column ", "\\W*([-+]?\\d*\\.?\\d*e?-?\\d*)\\W+([-+]?\\d*\\.?\\d*e?-?\\d*)", true)>0) + if (pp.getScoresFromDescription("description column", "score in description column ", "\\W*([-+eE0-9.]+)", true)>0) { buildSortByAnnotationScoresMenu(); } }