Class Config
java.lang.Object
org.openstreetmap.josm.spi.preferences.Config
Class to hold the global preferences object and the provider of base directories.
- Since:
- 12847
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static IBaseDirectoriesprivate static IPreferencesprivate static IUrls -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IBaseDirectoriesgetDirs()Get class that provides the location of certain base directoriesstatic IPreferencesgetPref()Get the preferences.static IUrlsgetUrls()Get class that provides the value of certain URLsstatic voidsetBaseDirectoriesProvider(IBaseDirectories baseDirectories) Install the global base directories provider.static voidsetPreferencesInstance(IPreferences preferences) Install the global preference instance.static voidsetUrlsProvider(IUrls urls) Install the global URLs provider.
-
Field Details
-
preferences
-
baseDirectories
-
urls
-
-
Constructor Details
-
Config
private Config()
-
-
Method Details
-
getPref
Get the preferences.- Returns:
- the preferences
- Since:
- 12847
-
getDirs
Get class that provides the location of certain base directories- Returns:
- the global
IBaseDirectoriesinstance - Since:
- 12855
-
getUrls
Get class that provides the value of certain URLs- Returns:
- the global
IUrlsinstance - Since:
- 14119
-
setPreferencesInstance
Install the global preference instance.- Parameters:
preferences- the global preference instance to set (must not be null)- Since:
- 12847
-
setBaseDirectoriesProvider
Install the global base directories provider.- Parameters:
baseDirectories- the global base directories provider instance to set (must not be null)- Since:
- 12855
-
setUrlsProvider
Install the global URLs provider.- Parameters:
urls- the global URLs provider instance to set (must not be null)- Since:
- 14119
-