Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Maeder2004-04-14 12:35:00 +0000
committerThomas Maeder2004-04-14 12:35:00 +0000
commit1e08f0f9955f4f442590e1154041a5eb49500ffd (patch)
tree886f9484ce47cbaa2449f56d6d74e6a14ecd467a
parent432f62e75041f52ac20260bb26a769266768808b (diff)
downloadeclipse.platform.text-1e08f0f9955f4f442590e1154041a5eb49500ffd.tar.gz
eclipse.platform.text-1e08f0f9955f4f442590e1154041a5eb49500ffd.tar.xz
eclipse.platform.text-1e08f0f9955f4f442590e1154041a5eb49500ffd.zip
fix for bug 54955
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileTableContentProvider.java9
1 files changed, 6 insertions, 3 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileTableContentProvider.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileTableContentProvider.java
index 0753f5415..0a327d9e1 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileTableContentProvider.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/text/FileTableContentProvider.java
@@ -37,9 +37,12 @@ public class FileTableContentProvider extends FileContentProvider implements ISt
public void elementsChanged(Object[] updatedElements) {
for (int i= 0; i < updatedElements.length; i++) {
- if (fResult.getMatchCount(updatedElements[i]) > 0)
- fTableViewer.add(updatedElements[i]);
- else
+ if (fResult.getMatchCount(updatedElements[i]) > 0) {
+ if (fTableViewer.testFindItem(updatedElements[i]) != null)
+ fTableViewer.update(updatedElements[i], null);
+ else
+ fTableViewer.add(updatedElements[i]);
+ } else
fTableViewer.remove(updatedElements[i]);
}
}

Back to the top