Select taxa with a search string matching the currently displayed attribute @param searchType @param searchString @param caseSensitive
(TextSearchType searchType, String searchString, boolean caseSensitive)
| 285 | * @param caseSensitive |
| 286 | */ |
| 287 | public void selectTaxa(TextSearchType searchType, String searchString, boolean caseSensitive) { |
| 288 | String attributeName = "!name"; |
| 289 | LabelPainter lp = treePane.getTipLabelPainter(); |
| 290 | if (lp != null && lp.isVisible() && lp.getDisplayAttribute() != null) { |
| 291 | attributeName = lp.getDisplayAttribute(); |
| 292 | } |
| 293 | |
| 294 | selectTaxa(attributeName, searchType, searchString, caseSensitive); |
| 295 | |
| 296 | scrollToSelectedTips(); |
| 297 | } |
| 298 | |
| 299 | public void selectTaxa(String attributeName, TextSearchType searchType, String searchString, boolean caseSensitive) { |
| 300 | if (treePane.getTree() == null) { |
nothing calls this directly
no test coverage detected