public class LocaleChangeServiceImpl
extends java.lang.Object
ILocaleChangeService that changes the Locale in the
specified IEclipseContext and additionally fires an event on the event bus.| Constructor and Description |
|---|
LocaleChangeServiceImpl(MApplication application)
Create a new
LocaleChangeServiceImpl for the given IEclipseContext. |
| Modifier and Type | Method and Description |
|---|---|
void |
changeApplicationLocale(java.util.Locale locale) |
void |
changeApplicationLocale(java.lang.String localeString) |
protected void |
updateLocalization(java.util.List<? extends MUIElement> children)
Will iterate over the given list of
MUIElements and inform them about the Locale
change if necessary. |
public LocaleChangeServiceImpl(MApplication application)
LocaleChangeServiceImpl for the given IEclipseContext.application - The application to retrieve the context from.public void changeApplicationLocale(java.util.Locale locale)
public void changeApplicationLocale(java.lang.String localeString)
protected void updateLocalization(java.util.List<? extends MUIElement> children)
MUIElements and inform them about the Locale
change if necessary.children - The list of MUIElements that should be checked for Locale updates.