Re: Localizing keymap category programmatically
Benno Markiewicz <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAA_aP4g=WNmO6vr3fqpRV2_zTLwhSs4iJvuySRg787VjXng9AA@mail.gmail.com> |
The category is the name of the subfolder where you register your action to. F.e. Actions/MyCategory With kind regards, markiewb 2016-04-14 14:44 GMT+02:00 winder <[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 > > > > >