Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » MenuManager i18n
MenuManager i18n [message #1706998] Tue, 01 September 2015 12:13 Go to next message
Alexander Zavodnikov is currently offline Alexander ZavodnikovFriend
Messages: 14
Registered: August 2015
Junior Member
Hello

please take a look at this line of code:

MenuManager fileMenu = new MenuManager("&File", IWorkbenchActionConstants.M_FILE);


How can I do i18n for the 1st constructor arg?


[Updated on: Tue, 01 September 2015 13:34]

Report message to a moderator

Re: MenuManager i18n [message #1707020 is a reply to message #1706998] Tue, 01 September 2015 14:44 Go to previous message
Alexander Zavodnikov is currently offline Alexander ZavodnikovFriend
Messages: 14
Registered: August 2015
Junior Member
i18n for that is done automatically - messages reside in /org/eclipse/ui/internal/ide/messages.properties. but then the key should be used as the 1st constructor arg:
MenuManager fileMenu = new MenuManager(IDEWorkbenchMessages.Workbench_file, IWorkbenchActionConstants.M_FILE);

[Updated on: Tue, 01 September 2015 14:46]

Report message to a moderator

Previous Topic:[Resolved] Past forum discussions
Next Topic:SWT maps event to wrong control.
Goto Forum:
  


Current Time: Wed Oct 28 12:24:57 GMT 2020

Powered by FUDForum. Page generated in 0.02719 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top