java.lang.Object
org.openstreetmap.josm.spi.preferences.Config

public final class Config extends Object
Class to hold the global preferences object and the provider of base directories.
Since:
12847
  • Field Details

  • Constructor Details

  • Method Details

    • getPref

      public static IPreferences getPref()
      Get the preferences.
      Returns:
      the preferences
      Since:
      12847
    • getDirs

      public static IBaseDirectories getDirs()
      Get class that provides the location of certain base directories
      Returns:
      the global IBaseDirectories instance
      Since:
      12855
    • getUrls

      public static IUrls getUrls()
      Get class that provides the value of certain URLs
      Returns:
      the global IUrls instance
      Since:
      14119
    • setPreferencesInstance

      public static void setPreferencesInstance(IPreferences preferences)
      Install the global preference instance.
      Parameters:
      preferences - the global preference instance to set (must not be null)
      Since:
      12847
    • setBaseDirectoriesProvider

      public static void setBaseDirectoriesProvider(IBaseDirectories baseDirectories)
      Install the global base directories provider.
      Parameters:
      baseDirectories - the global base directories provider instance to set (must not be null)
      Since:
      12855
    • setUrlsProvider

      public static void setUrlsProvider(IUrls urls)
      Install the global URLs provider.
      Parameters:
      urls - the global URLs provider instance to set (must not be null)
      Since:
      14119