Ignore:
Timestamp:
2017-09-14T14:39:53+02:00 (7 years ago)
Author:
bastiK
Message:

see #15229 - add separate interface IBaseDirectories to look up pref, user data and cache dir

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CachedFile.java

    r12853 r12855  
    277277                return null;
    278278            } else if (name.startsWith("josmdir://")) {
    279                 cacheFile = new File(Main.pref.getUserDataDirectory(), name.substring("josmdir://".length()));
     279                cacheFile = new File(Config.getDirs().getUserDataDirectory(), name.substring("josmdir://".length()));
    280280            } else if (name.startsWith("josmplugindir://")) {
    281281                cacheFile = new File(Main.pref.getPluginsDirectory(), name.substring("josmplugindir://".length()));
     
    448448        }
    449449        if (destDir == null) {
    450             destDir = Main.pref.getCacheDirectory().getPath();
     450            destDir = Config.getDirs().getCacheDirectory().getPath();
    451451        }
    452452
Note: See TracChangeset for help on using the changeset viewer.