Ignore:
Timestamp:
2017-09-14T14:39:53+02:00 (2 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/actions/ShowStatusReportAction.java

    r12846 r12855  
    3838import org.openstreetmap.josm.io.OsmApi;
    3939import org.openstreetmap.josm.plugins.PluginHandler;
     40import org.openstreetmap.josm.spi.preferences.Config;
    4041import org.openstreetmap.josm.tools.Logging;
    4142import org.openstreetmap.josm.tools.PlatformHookUnixoid;
     
    230231        final String propJavaHome = System.getProperty("java.home");
    231232        final String propJavaHomeAlt = "<java.home>";
    232         final String prefDir = Main.pref.getPreferencesDirectory().toString();
     233        final String prefDir = Config.getDirs().getPreferencesDirectory().toString();
    233234        final String prefDirAlt = "<josm.pref>";
    234         final String userDataDir = Main.pref.getUserDataDirectory().toString();
     235        final String userDataDir = Config.getDirs().getUserDataDirectory().toString();
    235236        final String userDataDirAlt = "<josm.userdata>";
    236         final String userCacheDir = Main.pref.getCacheDirectory().toString();
     237        final String userCacheDir = Config.getDirs().getCacheDirectory().toString();
    237238        final String userCacheDirAlt = "<josm.cache>";
    238239        final String userHomeDir = System.getProperty("user.home");
Note: See TracChangeset for help on using the changeset viewer.