Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java12
1 files changed, 2 insertions, 10 deletions
diff --git a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
index d4ece1438c..67d24e3626 100644
--- a/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
+++ b/bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/navigator/ResourceNavigator.java
@@ -1204,16 +1204,8 @@ public class ResourceNavigator extends ViewPart implements ISetSelectionTarget,
@Override
public void setFiltersPreference(String[] patterns) {
- StringBuilder sb = new StringBuilder();
-
- for (int i = 0; i < patterns.length; i++) {
- if (i != 0) {
- sb.append(ResourcePatternFilter.COMMA_SEPARATOR);
- }
- sb.append(patterns[i]);
- }
-
- getPlugin().getPreferenceStore().setValue(ResourcePatternFilter.FILTERS_TAG, sb.toString());
+ getPlugin().getPreferenceStore().setValue(ResourcePatternFilter.FILTERS_TAG,
+ String.join(ResourcePatternFilter.COMMA_SEPARATOR, patterns));
// remove value in old workbench preference store location
IPreferenceStore preferenceStore = IDEWorkbenchPlugin.getDefault().getPreferenceStore();

Back to the top