@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(); }
@Override public void queryStarting(ISearchQuery query) { if (fCurrentSearch != null && fCurrentSearch.equals(query.getSearchResult())) { updateCancelAction(); } }