Finding code attached to UI [message #714163] |
Tue, 09 August 2011 20:00  |
Eclipse User |
|
|
|
I'd like to find the code attached to the "run" button in the Android development tool, so I can see how to do the same from the command line. But more generally, I'd like to see the code attached to any button or keystroke.
I'm an Emacs guru, and in Emacs, I'd just type C-h k <click run>, and it would give me the code location (and one more click would bring up the code). I'm just getting started with Eclipse, and I have not yet found the equivalent.
-- Stephe
|
|
|
|
|
|
|
Re: Finding code attached to UI [message #715076 is a reply to message #714926] |
Fri, 12 August 2011 06:03  |
Eclipse User |
|
|
|
That's closer. But, for the 'Run' toolbar button, it doesn't let me open the drop down menu first, to show the final choice; it just gives me the top level widget info.
In Emacs, only the final menu/keystroke choice is displayed in the help buffer.
Also, it doesn't let me click to bring up the actual source; I have to search for it somewhere.
Finally, it doesn't work for keystrokes.
Hmm. For actual menus, it does open the submenus, and show the source. Apparently toolbar actions are significantly different than menu actions.
Arghh! not for the "run" menu entry! that brings up the same info as the "run" toolbar button. Which is at least consistent.
Apparently not all menu entries are equal.
The info presented by menu spy for "Run" is:
The active contribution item identifier:
org.eclipse.debug.internal.ui.actions.RunDropDownAction
The active contribution location URI:
toolbar:org.eclipse.debug.ui.launchActionSet?after=org.eclipse.debug.internal.ui.actions.RunDropDownAction
The active action set identifier:
org.eclipse.debug.ui.launchActionSet
I can't find that in .../eclipse-3.7/plugins. I found org.eclipse.debug.ui.source_3.7.0.v20110518.jar, but that doesn't seem to contain "launchActionSet".
Where is the source for this action?
|
|
|
Powered by
FUDForum. Page generated in 0.32390 seconds