After migrating my Eclipse/E4 application to the latest release Luna, I noticed that the TranslationService
is not present anymore within the E4Workbench.getServiceContext()
. At least not at the PostContextCreate
stage of the application. This is not a big deal, as you can easily create this yourself:
1 2 3 4 5 6 7 8 9 10 11 12 | private static TranslationService TRANSLATIONS = getTopContext().get(TranslationService.class); public static TranslationService getTranslationService() { if (TRANSLATIONS == null) { TRANSLATIONS = getTopContext().get(TranslationService.class); if (TRANSLATIONS == null) { TRANSLATIONS = ContextInjectionFactory.make(BundleTranslationProvider.class, getTopContext()); getTopContext().set(TranslationService.class, TRANSLATIONS); } } return TRANSLATIONS; } |