Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2003-10-21 09:30:56 +0000
committerDani Megert2003-10-21 09:30:56 +0000
commit8283fb32cbcb3113dcbdf05bdf544a2b96bbdccb (patch)
treead52486103af0252de7fbe5f9c2a71856a01d3c3
parent6863bbf36b596134c1bf3a3e9a1300be11d0308a (diff)
downloadeclipse.platform.text-8283fb32cbcb3113dcbdf05bdf544a2b96bbdccb.tar.gz
eclipse.platform.text-8283fb32cbcb3113dcbdf05bdf544a2b96bbdccb.tar.xz
eclipse.platform.text-8283fb32cbcb3113dcbdf05bdf544a2b96bbdccb.zip
Applied patch for 44891: Search view hanging while resorting search matches
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java16
1 files changed, 12 insertions, 4 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 317f8d656..1b3cfca17 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
@@ -196,11 +196,11 @@ public class SearchResultViewer extends TableViewer {
protected void doUpdateItem(Widget item, Object element, boolean fullMap) {
super.doUpdateItem(item, element, fullMap);
if (((SearchResultViewEntry)element).isPotentialMatch()) {
- TableItem ti = (TableItem) item;
- ti.setForeground(fPotentialMatchFgColor);
+ TableItem ti = (TableItem) item;
+ ti.setForeground(fPotentialMatchFgColor);
}
- }
-
+ }
+
private void handleSelectionChanged() {
int selectionCount= getSelectedEntriesCount();
boolean hasSingleSelection= selectionCount == 1;
@@ -710,4 +710,12 @@ public class SearchResultViewer extends TableViewer {
fResourceToItemsMapper.clearMap();
super.unmapAllElements();
}
+
+ protected void internalRefresh(Object element, boolean updateLabels) {
+ // see bug 44891
+ getTable().setRedraw(false);
+ super.internalRefresh(element, updateLabels);
+ getTable().setRedraw(true);
+ }
+
}

Back to the top