From: jprocter Date: Sun, 27 Feb 2011 18:35:28 +0000 (+0000) Subject: patch for JAL-792 X-Git-Tag: Release_2_7~233 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=924009a65aed548bcc265287534854fa7e249845;p=jalview.git patch for JAL-792 --- diff --git a/src/jalview/appletgui/Finder.java b/src/jalview/appletgui/Finder.java index 2993fdb..3a445a9 100755 --- a/src/jalview/appletgui/Finder.java +++ b/src/jalview/appletgui/Finder.java @@ -166,25 +166,30 @@ public class Finder extends Panel implements ActionListener ap.alignFrame.statusBar.setText("Finished searching."); resIndex = -1; seqIndex = 0; - } - if (findAll) - { - String message = (idMatch.size() > 0) ? "" + idMatch.size() + " IDs" - : ""; - if (idMatch.size() > 0 && searchResults != null - && searchResults.getSize() > 0) + } else { + if (findAll) { - message += " and "; + String message = (idMatch.size() > 0) ? "" + idMatch.size() + + " IDs" : ""; + if (idMatch.size() > 0 && searchResults != null + && searchResults.getSize() > 0) + { + message += " and "; + } + if (searchResults != null) + { + message += searchResults.getSize() + " subsequence matches."; + } + ap.alignFrame.statusBar.setText("Search results: " + searchString + + " : " + message); + } - if (searchResults != null) + else { - message += searchResults.getSize() + " subsequence matches."; + // TODO: indicate sequence and matching position in status bar + ap.alignFrame.statusBar.setText("Found match for " + searchString); } - ap.alignFrame.statusBar.setText("Search results: " + searchString - + " : " + message); - } - } Label jLabel1 = new Label();