mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 08:55:25 +02:00
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 <zeratul976@hotmail.com>
This commit is contained in:
parent
5bf1d13887
commit
22fc52aff6
1 changed files with 0 additions and 23 deletions
|
@ -218,31 +218,8 @@ public class CSearchResult extends AbstractTextSearchResult implements IEditorMa
|
|||
MatchFilter[] result = super.getActiveMatchFilters();
|
||||
if (result == null) {
|
||||
List<MatchFilter> 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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue