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();