Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Maeder2004-04-14 09:18:17 +0000
committerThomas Maeder2004-04-14 09:18:17 +0000
commit48d3fa94f53adc837a16a192d086cc899e3672bf (patch)
treedb7f68285025f9b9945f7cc0ad88de19ccd4d5cb
parent892a8a0c5ca621604de04bef8ebe498dc5d912d1 (diff)
downloadeclipse.platform.text-48d3fa94f53adc837a16a192d086cc899e3672bf.tar.gz
eclipse.platform.text-48d3fa94f53adc837a16a192d086cc899e3672bf.tar.xz
eclipse.platform.text-48d3fa94f53adc837a16a192d086cc899e3672bf.zip
fix for 57111
-rw-r--r--org.eclipse.search/new search/org/eclipse/search2/internal/ui/SearchView.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/SearchView.java b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/SearchView.java
index 83d54a862..089bb2415 100644
--- a/org.eclipse.search/new search/org/eclipse/search2/internal/ui/SearchView.java
+++ b/org.eclipse.search/new search/org/eclipse/search2/internal/ui/SearchView.java
@@ -418,7 +418,11 @@ public class SearchView extends PageBookView implements ISearchResultViewPart, I
* @see org.eclipse.search2.ui.ISearchView#fillContextMenu(org.eclipse.jface.action.IMenuManager)
*/
public void fillContextMenu(IMenuManager menuManager) {
- menuManager.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fSearchAgainAction);
+ ISearchResult result= getCurrentSearchResult();
+ if (result != null) {
+ fSearchAgainAction.setEnabled(result.getQuery().canRerun());
+ menuManager.appendToGroup(IContextMenuConstants.GROUP_SEARCH, fSearchAgainAction);
+ }
}
public void queryStarting(ISearchQuery query) {

Back to the top