Changeset 12825 in josm for trunk/src/org/openstreetmap/josm/data/preferences/sources/ValidatorPrefHelper.java
- Timestamp:
- 2017-09-11T20:43:41+02:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/preferences/sources/ValidatorPrefHelper.java
r12649 r12825 55 55 */ 56 56 public ValidatorPrefHelper() { 57 super(MapCSSTagChecker.ENTRIES_PREF_KEY );57 super(MapCSSTagChecker.ENTRIES_PREF_KEY, SourceType.TAGCHECKER_RULE); 58 58 } 59 59 … … 80 80 } 81 81 82 private staticvoid addDefault(List<ExtendedSourceEntry> defaults, String filename, String title, String description) {83 ExtendedSourceEntry i = new ExtendedSourceEntry( filename+".mapcss", "resource://data/validator/"+filename+".mapcss");82 private void addDefault(List<ExtendedSourceEntry> defaults, String filename, String title, String description) { 83 ExtendedSourceEntry i = new ExtendedSourceEntry(type, filename+".mapcss", "resource://data/validator/"+filename+".mapcss"); 84 84 i.title = title; 85 85 i.description = description; … … 98 98 @Override 99 99 public SourceEntry deserialize(Map<String, String> s) { 100 return new SourceEntry( s.get("url"), null, s.get("title"), Boolean.parseBoolean(s.get("active")));100 return new SourceEntry(type, s.get("url"), null, s.get("title"), Boolean.parseBoolean(s.get("active"))); 101 101 } 102 102 }
Note:
See TracChangeset
for help on using the changeset viewer.