Show All Instances of selected Java Class or Interface

Add this URL to your Eclipse Installation to reach this solution's update site.

2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), Kepler (4.3), Juno (4.2, 3.8), Previous to Juno (<=4.1), 2019-06 (4.12), 2019-09 (4.13), 2019-12 (4.14), 2020-03 (4.15), 2020-06 (4.16), 2020-09 (4.17), 2020-12 (4.18), 2021-03 (4.19)

https://cdn.rawgit.com/sandipchitale/sandipchitaleseclipseplugins/master/AllInstancesUpdateSite/site.xml

Learn more...
Solution Description

Update! This plugin works while debugging Groovy/Grails (not surprisingly). New ! Now supports not showing instances of a class if the instance count is 0. New ! Now supports showing all instances of objects whose class has annotations such as @Resource. New ! Now supports showing all instances of objects implementing selected Java Interface. As mentioned in the Eclipse help Java Development User Guide Tips and tricks Debugging section, when debugging with JavaSE-1.6+ you can see all instances of a particular class. You can invoke this functionality via the popup menu (All Instances...) of Variables view rows for reference type values or in the Java editor by positioning the cursor on or selecting a reference type expression. However it is not possible to see all instances of an arbitrary class. The All Instances plug-in adds this functionality. It can be invoked using the: - Run > All Instances of Java Class... - All Instances of Java Class... toolbar buttons in the Variables and Expressions views Once invoked it shows the customized Open Type dialog of JDT. Once you selects the class it adds the Instances (count) expression to the Expressions view. It also adds the expressions for sub classes of the selected . You can further show hide inner and anonymous inner classes. If there are 0 instances and Show static fields preference is enabled expressions to show the values of the static fields of the classes are also added. In addition, an expression showing java.security.CodeSource info for the class is also added if that information is available.

Categories: IDE

Additional Details

Eclipse Versions: 2019-03 (4.11), 2018-12 (4.10), 2018-09 (4.9), Photon (4.8), Oxygen (4.7), Neon (4.6), Mars (4.5), Luna (4.4), Kepler (4.3), Juno (4.2, 3.8), Previous to Juno (<=4.1), 2019-06 (4.12), 2019-09 (4.13), 2019-12 (4.14), 2020-03 (4.15), 2020-06 (4.16), 2020-09 (4.17), 2020-12 (4.18), 2021-03 (4.19)

Platform Support: Windows, Mac, Linux/GTK

Organization Name: Sandip Chitale

Development Status: Alpha

Date Created: Sunday, May 29, 2011 - 22:40

License: BSD

Date Updated: Wednesday, December 14, 2022 - 09:47

Submitted by: SANDIP CHITALE

Screenshot
Date Ranking Installs Clickthroughs
March 2024 0/0 0 4
February 2024 0/0 0 11
January 2024 0/0 0 7
December 2023 0/0 0 9
November 2023 0/0 0 10
October 2023 0/0 0 10
September 2023 0/0 0 7
August 2023 0/0 0 5
July 2023 0/0 0 4
June 2023 0/0 0 6
May 2023 0/0 0 7
April 2023 0/0 0 6
View Data for all Listings

Unsuccessful Installs

Unsuccessful Installs in the last 7 Days: 0

Download last 500 errors (CSV)

Marketplace Drag to Install Button

By adding the following code below to your website you will be able to add an install button for Show All Instances of selected Java Class or Interface .

HTML Code:

Markdown Syntax:

Output:

Drag to your running Eclipse* workspace. *Requires Eclipse Marketplace Client

Reviews Add new review

Very helpful, works smoothly in Eclipse Juno.

Even capable of listing all instances of some inner class and anonymous class.

The only feature I would like to see added in the next release: getting a list of all instances implementing a specified interface.