| 209 | } |
| 210 | |
| 211 | void save(Preferences prefs) throws BackingStoreException { |
| 212 | if (!isValid()) return; |
| 213 | |
| 214 | Config.saveList(prefs.node(pathsAKey), pathsA); |
| 215 | Config.saveList(prefs.node(pathsBKey), pathsB); |
| 216 | Config.saveList(prefs.node(classPathAKey), classPathA); |
| 217 | Config.saveList(prefs.node(classPathBKey), classPathB); |
| 218 | Config.saveList(prefs.node(pathsSharedKey), sharedClassPath); |
| 219 | prefs.putBoolean(inputsBeforeClassPathKey, inputsBeforeClassPath); |
| 220 | if (mappingsPathA != null) prefs.put(mappingsPathAKey, mappingsPathA.toString()); |
| 221 | if (mappingsPathB != null) prefs.put(mappingsPathBKey, mappingsPathB.toString()); |
| 222 | prefs.putBoolean(saveUnmappedMatchesKey, saveUnmappedMatches); |
| 223 | prefs.put(nonObfuscatedClassPatternAKey, nonObfuscatedClassPatternA); |
| 224 | prefs.put(nonObfuscatedClassPatternBKey, nonObfuscatedClassPatternB); |
| 225 | prefs.put(nonObfuscatedMemberPatternAKey, nonObfuscatedMemberPatternA); |
| 226 | prefs.put(nonObfuscatedMemberPatternBKey, nonObfuscatedMemberPatternB); |
| 227 | } |
| 228 | |
| 229 | public static final ProjectConfig EMPTY = new ProjectConfig(Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), Collections.emptyList(), |
| 230 | false, null, null, true, "", "", "", ""); |