tags:

views:

36

answers:

1

I want to modify some code in the Eclipse JDT itself (In the "Debug Configurations" Dialog). I know how I can download the sources using CVS and all, but I wonder: what is the easiest way to find which packages I should download?

I guess I can guess that that particular element is, say, in the org.eclipse.jdt.debug package. But, is there a more "scientific" way to do that? Say, maybe a plug-in that lets me click on any widget in the Eclipse user interface and it will tell me what's the class behind it?

+3  A: 

You need the Plugin Spy. A very handy tool which shows you the implementing class (and plugin/JAR) of any UI element in Eclipse. This article explains how to use the plugin spy and the sources.

When downloading Eclipse, get the "Eclipse SDK" package. It contains all the sources as JARs which you can browse or even import (as stated in the article above).

zvikico
The plugin spy works quite well, though I must point that it fails sometimes to know what's the plugin behind some elements in the UI. For a simple example, go to Window > Preferences > General > Keys, then type Shift-Alt-F2 (to activate the Plugin Spy) and click on "Unbind Command". The Spy thing will come up empty.
Zorzella