RSS

Search Engine

Thursday, July 8, 2010

Finding commands for keybindings

Eclipse allows to trace a running Eclipse and to write information to the console. This can be used to identify which command is associated with a certain keybinding.

To use this create a runtime configuration which contains the Eclipse plugins you are interested in, e.g. include "org.eclipse.ui" and press add required plugins.

In the "Run Configuration" switch to the "Tracing" tab and set "Enable Tracing". Select the "org.eclipse.ui" plugin. Flag "debug".

Scroll down and select "trace/keybindings" and "trace/keybindings.verbose".

Make sure you have the -consoleLog flag maintained as an argument.

If you start now the Eclipse IDE then everytime you use a shortcut the calling Eclipse will display a trace which contains the commandId.

In your calling Eclipse you can now use Search (text) to find the handler / action which implements this command.

0 comments:

Post a Comment