Package org.openstreetmap.josm.plugins
Class Plugin.PluginBaseDirectories
java.lang.Object
org.openstreetmap.josm.plugins.Plugin.PluginBaseDirectories
- All Implemented Interfaces:
IBaseDirectories
- Enclosing class:
- Plugin
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCacheDirectory(boolean createIfMissing) Get the directory where user-specific cached content (non-essential data) should be stored.getPreferencesDirectory(boolean createIfMissing) Get the directory where user-specific configuration and preferences should be stored.getUserDataDirectory(boolean createIfMissing) Get the directory where user-specific data files should be stored.
-
Field Details
-
preferencesDir
-
cacheDir
-
userdataDir
-
-
Constructor Details
-
PluginBaseDirectories
private PluginBaseDirectories()
-
-
Method Details
-
getPreferencesDirectory
Description copied from interface:IBaseDirectoriesGet the directory where user-specific configuration and preferences should be stored.- Specified by:
getPreferencesDirectoryin interfaceIBaseDirectories- Parameters:
createIfMissing- if true, automatically creates this directory, in case it is missing- Returns:
- the preferences directory
-
getUserDataDirectory
Description copied from interface:IBaseDirectoriesGet the directory where user-specific data files should be stored.- Specified by:
getUserDataDirectoryin interfaceIBaseDirectories- Parameters:
createIfMissing- if true, automatically creates this directory, in case it is missing- Returns:
- the user data directory
-
getCacheDirectory
Description copied from interface:IBaseDirectoriesGet the directory where user-specific cached content (non-essential data) should be stored.- Specified by:
getCacheDirectoryin interfaceIBaseDirectories- Parameters:
createIfMissing- if true, automatically creates this directory, in case it is missing- Returns:
- the cache directory
-