Community
Participate
Working Groups
JDT's debugger provides a functionality called "All instances...". It lists all instances of a specific type. The current problem with it is that you first must somehow get hold of another instance of exactly this type to open the "All instances..." functionality. There is an Eclipse plugin by Sandip Chitale (see http://sandipchitale.blogspot.de/2012/10/eclipse-show-all-instances-of.html ) which solves this problem: Whenever the debugger is stopped on some breakpoint, you can open the "All Instances Of Java Type" dialog. This dialog allows you select any Java type, may it be class or interface, and find all instances of that type INCLUDING all subtypes of that type. Additionally, the dialog allows you to select some Java annotation and find all class instances whose classes are annotated with this annotation. It would be of great help during any serious debugging session if the JDT debugger would have all these functionalities.
The source code for the plug-in is at: http://sandipchitaleseclipseplugins.googlecode.com/svn/trunk/AllInstances Time permitting I will submit a patch.