views:

82

answers:

0

I am developing an RCP application based on Eclipse and use i18n to load message resources. My requirement is that I need to change the View title based on locale/i18n. I am using setPartName to do that.

It does change it, but the issue is that it shows the title-changes only after the view has been clicked. So, in a way, it first displays the previously used title for the view [I am using WorkbenchPlugin.getDefault().getDataLocation() to use/set workspace settings].

Use cases: - English user opens the application and sees the View titles in English. On close of the application, his settings are saved including the views that were opened. - Japanese user (changed Locale) now opens the application, and application uses same workspace settings as for the English user, so opens the same views as opened previously by the English user. But he initially sees the View titles in English. Only after he clicks on the View titles, does he sees them in Japanese.=>ERROR (Expected: a click should not have been necessary to see the title in Japanese)

Please suggest a solution!!

Thanks

Regards TM