Changeset 4896 in josm for trunk/src/org
- Timestamp:
- 2012-02-02T19:40:31+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/dialogs/FilterTableModel.java
r4615 r4896 177 177 178 178 private void loadPrefs() { 179 if (!loadPrefsImpl()) {180 loadPrefsOld();181 savePrefs();182 }183 }184 185 private boolean loadPrefsImpl() {186 179 List<FilterPreferenceEntry> entries = Main.pref.getListOfStructs("filters.entries", null, FilterPreferenceEntry.class); 187 if (entries == null) 188 return false; 189 for (FilterPreferenceEntry e : entries) { 190 filters.add(new Filter(e)); 191 } 192 updateFilters(); 193 return true; 194 } 195 196 @Deprecated 197 private void loadPrefsOld() { 198 Map<String, String> prefs = Main.pref.getAllPrefix("filters.filter"); 199 for (String value : prefs.values()) { 200 filters.add(new Filter(value)); 201 } 202 updateFilters(); 180 if (entries != null) { 181 for (FilterPreferenceEntry e : entries) { 182 filters.add(new Filter(e)); 183 } 184 updateFilters(); 185 } 203 186 } 204 187
Note:
See TracChangeset
for help on using the changeset viewer.