Example #1
0
 @Override
 public void queryRemoved(ISearchQuery query) {
   InternalSearchUI.getInstance().cancelSearch(query);
   if (query.getSearchResult().equals(fCurrentSearch)) {
     showSearchResult(null);
     partActivated(fDefaultPart);
   }
   fSearchViewStates.remove(query.getSearchResult());
   fSearchesDropDownAction.disposeMenu();
   fSearchesDropDownAction.updateEnablement();
 }
Example #2
0
 @Override
 public void queryStarting(ISearchQuery query) {
   if (fCurrentSearch != null && fCurrentSearch.equals(query.getSearchResult())) {
     updateCancelAction();
   }
 }