Bug 393490 - Provide "Find all instances of Java type" functionality
Summary: Provide "Find all instances of Java type" functionality
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.3   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-11-03 11:49 EDT by Abdull CLA
Modified: 2012-11-05 10:27 EST (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Abdull CLA 2012-11-03 11:49:41 EDT
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.
Comment 1 Sandip Chitale CLA 2012-11-03 12:13:46 EDT
The source code for the plug-in is at:

http://sandipchitaleseclipseplugins.googlecode.com/svn/trunk/AllInstances

Time permitting I will submit a patch.