null, JOptionPane.INFORMATION_MESSAGE);
resIndex = -1;
seqIndex = 0;
- }
-
- if (findAll)
- {
- String message = (idMatch.size() > 0) ? "" + idMatch.size() + " IDs"
- : "";
- if (searchResults != null)
+ } else {
+ if (findAll)
{
- if (idMatch.size() > 0 && searchResults.getSize() > 0)
+ // then we report the matches that were found
+ String message = (idMatch.size() > 0) ? "" + idMatch.size()
+ + " IDs" : "";
+ if (searchResults != null)
{
- message += " and ";
+ if (idMatch.size() > 0 && searchResults.getSize() > 0)
+ {
+ message += " and ";
+ }
+ message += searchResults.getSize()
+ + " subsequence matches found.";
}
- message += searchResults.getSize() + " subsequence matches found.";
+ JOptionPane.showInternalMessageDialog(this, message, null,
+ JOptionPane.INFORMATION_MESSAGE);
+ resIndex = -1;
+ seqIndex = 0;
}
- JOptionPane.showInternalMessageDialog(this, message, null,
- JOptionPane.INFORMATION_MESSAGE);
- resIndex = -1;
- seqIndex = 0;
}
}