NetBeans Keycap Listing

"ask.melnyk" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
RamiS wrote:
> 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.
> > 
> > 
> > 
> > 
> 



Thank you very much!

I'm getting keys from config with your code and nice look have with 


Code:
String ksts = org.netbeans.editor.Utilities.keyStrokeToString(ks);



How can i get action name by shortcut?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.