private static final String SEPARATOR = ",";
public static boolean loadViewDefaults(final List<String> userDefinedPatterns,
final Set<String> enabledFilterIDs) {
final IEclipsePreferences prefsNode = ErlangOutlinePage.getPrefsNode();
final boolean areUserDefinedPatternsEnabled = prefsNode.getBoolean(
PreferenceConstants.OUTLINE_CUSTOM_PATTERN_FILTERS_ENABLED, false);
final String userDefinedPatternsString = prefsNode.get(
PreferenceConstants.OUTLINE_CUSTOM_PATTERN_FILTERS, "");
userDefinedPatterns.addAll(ListsUtils.unpackList(userDefinedPatternsString,
SEPARATOR));
final String enabledFilterIDsString = prefsNode.get(
PreferenceConstants.OUTLINE_ENABLED_FILTERS, "");
enabledFilterIDs.addAll(ListsUtils.unpackList(enabledFilterIDsString, SEPARATOR));
return areUserDefinedPatternsEnabled;
}