Package megamek

Class SuiteOptions

java.lang.Object
megamek.SuiteOptions
Direct Known Subclasses:
MMOptions

public class SuiteOptions extends Object
  • Field Details

    • userPreferences

      protected static final Preferences userPreferences
  • Constructor Details

    • SuiteOptions

      protected SuiteOptions()
  • Method Details

    • getLocale

      public Locale getLocale()
      This is a temporary Locale getter, which sets the stage for suite-wide localization.
    • getDateLocale

      public Locale getDateLocale()
      This is a temporary Locale getter for dates, which sets the stage for suite-wide localization.
    • getNumberFormatLocale

      public static Locale getNumberFormatLocale()
      Returns the Locale used for formatting and parsing numbers (grouping and decimal separators). Each application applies this as the default Locale.Category.FORMAT Locale at startup so that numbers display the same way throughout the suite, regardless of the operating system's regional settings or the chosen UI language.

      This is fixed to Locale.US for now and is the hook for a future user-facing number format option.

      Returns:
      the Locale to use for number formatting