Class LocaleSelector

java.lang.Object
org.libreoffice.ide.eclipse.core.editors.utils.LocaleSelector

public class LocaleSelector extends Object
Component for the selection of a locale.
  • Constructor Details

    • LocaleSelector

      public LocaleSelector(org.eclipse.ui.forms.widgets.FormToolkit pToolkit, org.eclipse.swt.widgets.Composite pParent)
      Creates the control on a form.
      Parameters:
      pToolkit - the toolkit to use for the controls creation
      pParent - the page composite
  • Method Details

    • addListener

      public void addListener(ILocaleListener listener)
      Parameters:
      listener - the listener to add
    • removeListener

      protected void removeListener(ILocaleListener listener)
      Parameters:
      listener - the listener to remove.
    • getCurrentLocale

      protected Locale getCurrentLocale()
      Returns:
      the currently selected locale. null if no locale selected.
    • loadLocales

      public void loadLocales(ArrayList<Locale> locales)
      Replace all the previous locales by these new ones.
      Parameters:
      locales - the new locales to set.