Re: NetBeans Keycap Listing
Johannes Wahle <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi,
this should get you started:
FileObject shortcuts = FileUtil.getConfigFile("Shortcuts");
for (FileObject shortcut : shortcuts.getChildren()) {
KeyStroke key = Utilities.stringToKey(shortcut.getName());
action = shortcut.getAttribute(...)
}
You still need to figure out, which attribute points to the original
action, but there should be one (check via shortcut.getAttributes()).
If the attribute value is a string you might need to look up the Action
via Actions.forID().
Regards,
Johannes
On 09.06.2016 17:53, ask.melnyk wrote:
> I'm write platform plugin for catching shortcuts and showing tips in the status bar. But i need showing action associated with shortcut.
>
>
>
>