Ignore:
Timestamp:
2017-09-11T20:43:41+02:00 (7 years ago)
Author:
Don-vip
Message:

see #15229 - see #15182 - make FileWatcher generic so it has no more dependence on MapCSS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/preferences/sources/ValidatorPrefHelper.java

    r12649 r12825  
    5555     */
    5656    public ValidatorPrefHelper() {
    57         super(MapCSSTagChecker.ENTRIES_PREF_KEY);
     57        super(MapCSSTagChecker.ENTRIES_PREF_KEY, SourceType.TAGCHECKER_RULE);
    5858    }
    5959
     
    8080    }
    8181
    82     private static void 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");
    8484        i.title = title;
    8585        i.description = description;
     
    9898    @Override
    9999    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")));
    101101    }
    102102}
Note: See TracChangeset for help on using the changeset viewer.