Ignore:
Timestamp:
2017-09-14T14:39:53+02:00 (19 months 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/gui/io/CustomConfigurator.java

    r12846 r12855  
    425425        String dir;
    426426        if ("prefs".equals(base) || base.isEmpty()) {
    427             dir = Main.pref.getPreferencesDirectory().getAbsolutePath();
     427            dir = Config.getDirs().getPreferencesDirectory().getAbsolutePath();
    428428        } else if ("cache".equals(base)) {
    429             dir = Main.pref.getCacheDirectory().getAbsolutePath();
     429            dir = Config.getDirs().getCacheDirectory().getAbsolutePath();
    430430        } else if ("plugins".equals(base)) {
    431431            dir = Main.pref.getPluginsDirectory().getAbsolutePath();
     
    477477                engine.eval("API={}; API.pref={}; API.fragments={};");
    478478
    479                 engine.eval("homeDir='"+normalizeDirName(Main.pref.getPreferencesDirectory().getAbsolutePath()) +"';");
     479                engine.eval("homeDir='"+normalizeDirName(Config.getDirs().getPreferencesDirectory().getAbsolutePath()) +"';");
    480480                engine.eval("josmVersion="+Version.getInstance().getVersion()+';');
    481481                String className = CustomConfigurator.class.getName();
Note: See TracChangeset for help on using the changeset viewer.