Localizing keymap category programmatically
"winder" <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
My application is localized using a support library included as a wrapped jar. For most of the NetBeans platform this isn't an issue and I'm able to localize things programmatically as needed, but in the case of menu items and keybinding categories I'm having to jump through hoops. Localized Dynamic Menu I'm able to programmatically set/override the "displayName" attribute of each folder to localize menu's, this works perfectly. Localized Action Keymap Category The last thing I'm not able to localize is the category name in the keymap configuration tab. Is there an attribute I need to set in the action? Or part of the instance object? Here is the code I'm using to setup the instance/shadow objects and hookup an action: https://github.com/winder/Universal-G-Code-Sender/blob/3432bd5fb8ccc6bca29101c429359ee259c98670/ugs-platform/ugs-platform-ugslib/src/main/java/com/willwinder/ugs/nbp/lib/services/ActionRegistrationService.java#L50