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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeApplicationLocale(String localeString) Change theLocalein the application context.voidchangeApplicationLocale(Locale locale) Change theLocalein 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 theLocalein the application context.- Parameters:
locale- TheLocaleto set to the application context.
-
changeApplicationLocale
Change theLocalein the application context.If the given String is not a valid
LocaleString representation, there will be no locale change performed.- Parameters:
localeString- The String representation of theLocaleto set to the application context.
-