Ignore:
Timestamp:
2014-06-30T01:06:11+02:00 (10 years ago)
Author:
Don-vip
Message:

fix #9518 - Automatically reload MapCSS tagchecker validator rules (configurable with validator.auto_reload_local_rules property), improve javadoc

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/mappaint/MapPaintStyles.java

    r7256 r7276  
    44import static org.openstreetmap.josm.tools.I18n.tr;
    55
     6import java.io.File;
    67import java.io.IOException;
    78import java.io.InputStreamReader;
     
    164165        List<String> dirs = new LinkedList<>();
    165166
    166         String sourceDir = source.getLocalSourceDir();
     167        File sourceDir = source.getLocalSourceDir();
    167168        if (sourceDir != null) {
    168             dirs.add(sourceDir);
     169            dirs.add(sourceDir.getPath());
    169170        }
    170171
    171172        Collection<String> prefIconDirs = Main.pref.getCollection("mappaint.icon.sources");
    172         for(String fileset : prefIconDirs)
    173         {
     173        for (String fileset : prefIconDirs) {
    174174            String[] a;
    175175            if(fileset.indexOf('=') >= 0) {
Note: See TracChangeset for help on using the changeset viewer.