Type hierarchy only from JDK
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?
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.
You can do this to see only JDK exception types:
Open the "Quick Type Hierarchy" (CTRL - T on the class name) and use the name filter. Then type *java.
and only exceptions of the java package will be shown.
下一篇: 仅从JDK输入层次结构