From 22fc52aff65dacaac6e121f76015afe6220c7286 Mon Sep 17 00:00:00 2001 From: Nathan Ridge Date: Sun, 14 Jun 2015 03:24:12 -0400 Subject: [PATCH] Bug 459181 - Do not persist the state of the 'Hide potential method calls' and 'Hide read-only references' search filters across searches Change-Id: I424515f896b4222c247315bc72738cc4070d9e65 Signed-off-by: Nathan Ridge --- .../cdt/internal/ui/search/CSearchResult.java | 23 ------------------- 1 file changed, 23 deletions(-) diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchResult.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchResult.java index f5234f0fd72..3917a7977a1 100644 --- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchResult.java +++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/search/CSearchResult.java @@ -218,31 +218,8 @@ public class CSearchResult extends AbstractTextSearchResult implements IEditorMa MatchFilter[] result = super.getActiveMatchFilters(); if (result == null) { List filters = new ArrayList<>(); - if (CUIPlugin.getDefault().getDialogSettings().getBoolean(KEY_SHOW_POLYMORPHIC_CALLS)) { - filters.add(HidePolymorphicCalls.FILTER); - } - if (CUIPlugin.getDefault().getDialogSettings().getBoolean(KEY_HIDE_READ_ONLY_REFERENCES)) { - filters.add(HideReadOnlyReferences.READ_ONLY_FILTER); - } return filters.toArray(new MatchFilter[filters.size()]); } return result; } - - @Override - public void setActiveMatchFilters(MatchFilter[] filters) { - boolean showPoly= false; - boolean hideReadOnly= false; - for (int i = 0; i < filters.length; i++) { - if (filters[i] == HidePolymorphicCalls.FILTER) { - showPoly= true; - } - if (filters[i] == HideReadOnlyReferences.READ_ONLY_FILTER) { - hideReadOnly = true; - } - } - CUIPlugin.getDefault().getDialogSettings().put(KEY_SHOW_POLYMORPHIC_CALLS, showPoly); - CUIPlugin.getDefault().getDialogSettings().put(KEY_HIDE_READ_ONLY_REFERENCES, hideReadOnly); - super.setActiveMatchFilters(filters); - } }