Package org.eclipse.e4.core.services.nls
Interface ILocaleChangeService
- All Known Implementing Classes:
LocaleChangeServiceImpl
public interface ILocaleChangeService
Service that is used to change the
Locale
at runtime.
Note: This is not an OSGi service! It is created by a ContextFunction
.
- Since:
- 1.2
- Restriction:
- This interface is not intended to be implemented by clients.
- Restriction:
- This interface is not intended to be extended by clients.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
changeApplicationLocale
(String localeString) Change theLocale
in the application context.void
changeApplicationLocale
(Locale locale) Change theLocale
in the application context.
-
Field Details
-
TOPIC
Base name for all locale change events.- See Also:
-
LOCALE_CHANGE
Locale change event: event that gets fired on Locale changes.- See Also:
-
-
Method Details
-
changeApplicationLocale
Change theLocale
in the application context.- Parameters:
locale
- TheLocale
to set to the application context.
-
changeApplicationLocale
Change theLocale
in the application context.If the given String is not a valid
Locale
String representation, there will be no locale change performed.- Parameters:
localeString
- The String representation of theLocale
to set to the application context.
-