From 924009a65aed548bcc265287534854fa7e249845 Mon Sep 17 00:00:00 2001 From: jprocter Date: Sun, 27 Feb 2011 18:35:28 +0000 Subject: [PATCH] patch for JAL-792 --- src/jalview/appletgui/Finder.java | 33 +++++++++++++++++++-------------- 1 file changed, 19 insertions(+), 14 deletions(-) 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(); -- 1.7.10.2