Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Vogel2020-09-22 16:37:22 +0000
committerAlexander Kurtakov2020-09-25 05:38:57 +0000
commitc6dc8656e3d2485bd7768bdd84793a3b37cb7fe1 (patch)
treef2b7f941c1917df66f41a113b7ac89d7c5b45409
parent3e9d26fb7a85f61064cf52a294b9221bd721dd03 (diff)
downloadeclipse.platform.text-c6dc8656e3d2485bd7768bdd84793a3b37cb7fe1.tar.gz
eclipse.platform.text-c6dc8656e3d2485bd7768bdd84793a3b37cb7fe1.tar.xz
eclipse.platform.text-c6dc8656e3d2485bd7768bdd84793a3b37cb7fe1.zip
Removes unnecessary Color#dispose calls from SearchResultViewer
Change-Id: I9570b569dd4db1b973e7abf108276a4b6e25b6e4 Signed-off-by: Lars Vogel <Lars.Vogel@vogella.com>
-rw-r--r--org.eclipse.search/search/org/eclipse/search/internal/ui/SearchResultViewer.java2
1 files changed, 0 insertions, 2 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 6d8c7960efd..5817e229c48 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
@@ -548,8 +548,6 @@ public class SearchResultViewer extends TableViewer {
* Updates the foreground color for potential matches.
*/
void updatedPotentialMatchFgColor() {
- if (fPotentialMatchFgColor != null)
- fPotentialMatchFgColor.dispose();
fPotentialMatchFgColor= null;
if (SearchPreferencePage.arePotentialMatchesEmphasized())
fPotentialMatchFgColor= new Color(SearchPlugin.getActiveWorkbenchShell().getDisplay(), SearchPreferencePage.getPotentialMatchForegroundColor());

Back to the top