diff options
author | Lars Vogel | 2020-09-22 16:37:22 +0000 |
---|---|---|
committer | Alexander Kurtakov | 2020-09-25 05:38:57 +0000 |
commit | c6dc8656e3d2485bd7768bdd84793a3b37cb7fe1 (patch) | |
tree | f2b7f941c1917df66f41a113b7ac89d7c5b45409 | |
parent | 3e9d26fb7a85f61064cf52a294b9221bd721dd03 (diff) | |
download | eclipse.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.java | 2 |
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()); |