Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2002-09-19 13:28:06 +0000
committerDani Megert2002-09-19 13:28:06 +0000
commit7eedab75a3546131a64103a2314007b84b82adf4 (patch)
tree74d670124a818b043bb88474ccf455c23b247c24
parent7c4f184084a5acd4a2d0c5cbcbeed48576568e84 (diff)
downloadeclipse.platform.text-7eedab75a3546131a64103a2314007b84b82adf4.tar.gz
eclipse.platform.text-7eedab75a3546131a64103a2314007b84b82adf4.tar.xz
eclipse.platform.text-7eedab75a3546131a64103a2314007b84b82adf4.zip
Don't store selectionv20020919
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java
index a2584dd98..202a9b426 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java
@@ -171,12 +171,9 @@ public class SearchResultViewer extends TableViewer {
setGotoMarkerAction(search.getGotoMarkerAction());
setContextMenuTarget(search.getContextMenuContributor());
setActionGroupFactory(null);
- // preserving selection since next call destroys it
- ISelection selection= search.getSelection();
- setInput(search.getResults());
setActionGroupFactory(search.getActionGroupFactory());
- setSelection(selection, true);
setPageId(search.getPageId());
+ setInput(search.getResults());
}
}
@@ -195,9 +192,6 @@ public class SearchResultViewer extends TableViewer {
int selectionCount= getSelectedEntriesCount();
boolean hasSingleSelection= selectionCount == 1;
boolean hasElements= getItemCount() > 0;
- Search search= SearchManager.getDefault().getCurrentSearch();
- if (search != null)
- search.setSelection(fLastSelection);
fShowNextResultAction.setEnabled(hasSingleSelection || (hasElements && selectionCount == 0));
fShowPreviousResultAction.setEnabled(hasSingleSelection || (hasElements && selectionCount == 0));
fGotoMarkerActionProxy.setEnabled(hasSingleSelection);

Back to the top