use of org.jabref.gui.BasePanel in project jabref by JabRef.
the class GlobalSearchBar method informUserAboutInvalidSearchQuery.
private void informUserAboutInvalidSearchQuery() {
searchField.setBackground(NO_RESULTS_COLOR);
searchQueryHighlightObservable.reset();
BasePanel currentBasePanel = frame.getCurrentBasePanel();
currentBasePanel.getMainTable().getTableModel().updateSearchState(MainTableDataModel.DisplayOption.DISABLED);
searchIcon.setIcon(IconTheme.JabRefIcon.SEARCH.getSmallIcon().createWithNewColor(NO_RESULTS_COLOR));
String illegalSearch = Localization.lang("Search failed: illegal search expression");
searchIcon.setToolTipText(illegalSearch);
currentResults.setText(illegalSearch);
openCurrentResultsInDialog.setEnabled(false);
}
Aggregations