Class LocaleChangeServiceImpl

java.lang.Object
org.eclipse.e4.ui.internal.LocaleChangeServiceImpl
All Implemented Interfaces:
ILocaleChangeService

public class LocaleChangeServiceImpl extends Object implements ILocaleChangeService
Default implementation of ILocaleChangeService that changes the Locale in the specified IEclipseContext and additionally fires an event on the event bus.
Author:
Dirk Fauth
  • Constructor Details

  • Method Details

    • changeApplicationLocale

      public void changeApplicationLocale(Locale locale)
      Description copied from interface: ILocaleChangeService
      Change the Locale in the application context.
      Specified by:
      changeApplicationLocale in interface ILocaleChangeService
      Parameters:
      locale - The Locale to set to the application context.
    • changeApplicationLocale

      public void changeApplicationLocale(String localeString)
      Description copied from interface: ILocaleChangeService
      Change the Locale in the application context.

      If the given String is not a valid Locale String representation, there will be no locale change performed.

      Specified by:
      changeApplicationLocale in interface ILocaleChangeService
      Parameters:
      localeString - The String representation of the Locale to set to the application context.
    • updateLocalization

      protected void updateLocalization(List<? extends MUIElement> children)
      Will iterate over the given list of MUIElements and inform them about the Locale change if necessary.
      Parameters:
      children - The list of MUIElements that should be checked for Locale updates.