Hierarchy Type Only From JDK

In Eclipse, I often like to find more specific subclasses of Exception - for example, I open a hierarchy of IOException or IllegalArgumentException types.

I see a complete hierarchy

  • Jdk
  • Wireframes
  • Libraries that are indirectly used.

I have to decide which exception can compare better. Very often, I find an exception that fits my needs, but is not part of the JDK.

Question:

Is it possible to reduce the hierarchy in JDK libraries or just a package?

+7
java eclipse
source share
2 answers

Currently, the type hierarchy can be limited only to projects (including their dependencies) from the selected working sets.

Therefore, 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.

+3
source share

You can do this to see only JDK exception types:

Open the "Quick Type Hierarchy" (CTRL - T in the class name) and use the name filter. Then enter *java. and only exceptions from the java package will be shown.

+1
source share

All Articles