Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2002-06-21 09:05:10 +0000
committerDani Megert2002-06-21 09:05:10 +0000
commit647a27d35c34fda06db84e7fe59d8a4b149d73d6 (patch)
tree351c5b5ae29d71067e3df860641e772c05a01065
parentbc6b839a5b285b98b3492b7cdfcdc8b1b60fcff0 (diff)
downloadeclipse.platform.text-647a27d35c34fda06db84e7fe59d8a4b149d73d6.tar.gz
eclipse.platform.text-647a27d35c34fda06db84e7fe59d8a4b149d73d6.tar.xz
eclipse.platform.text-647a27d35c34fda06db84e7fe59d8a4b149d73d6.zip
Fixed bug 20593: Preference listeners should use equals, not ==
Reviewed by Dirk Baeumer and Kai-Uwe Maetzel
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultView.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultView.java b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultView.java
index e4f29958a..3908ccfe0 100644
--- a/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultView.java
+++ b/org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultView.java
@@ -85,7 +85,7 @@ public class SearchResultView extends ViewPart implements ISearchResultView {
fPropertyChangeListener= new IPropertyChangeListener() {
public void propertyChange(PropertyChangeEvent event) {
- if (event.getProperty() == SearchPreferencePage.POTENTIAL_MATCH_FG_COLOR || event.getProperty() == SearchPreferencePage.EMPHASIZE_POTENTIAL_MATCHES)
+ if (SearchPreferencePage.POTENTIAL_MATCH_FG_COLOR.equals(event.getProperty()) || SearchPreferencePage.EMPHASIZE_POTENTIAL_MATCHES.equals(event.getProperty()))
if (fViewer != null)
fViewer.updatedPotentialMatchBgColor();
}

Back to the top