In Eclipse I often like to find more specific subclasses of an Exception
- for example I open a type hierarchy of IOException
or IllegalArgumentException
.
What I see is a full hierarchy of the
I have to decide, what exception may match better. Very often I find an exception that fit my needs, but is not part of the JDK.
Question:
Can i reduce the Hierarchy to JDK Libraries or a package only?
On the basis of class, there can be three types of inheritance in java: single, multilevel and hierarchical. In java programming, multiple and hybrid inheritance is supported through interface only.
Press Ctrl+Shift+H -or- from the Menu Bar go to Navigate | Open Type in Hierarchy. The "Open Type in Hierarchy" dialog is displayed.
In Java, objects have an actual type, which is the class whose constructor was used to create them, but objects of a class which extends another class or implements an interface are also considered to be of the type of that class or interface.
Currently, the Type Hierarchy can only be limited to projects (including their dependencies) from selected Working Sets.
Hence, the only workaround that comes to my mind is to create a Java project that serves as a filter and then create and select a Working Set that just contains this project.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With