Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Type hierarchy only from JDK

Tags:

java

eclipse

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

  • JDK
  • Frameworks
  • Libraries that are indirectly used.

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?

like image 696
Grim Avatar asked Sep 18 '14 09:09

Grim


People also ask

What are types of hierarchy in Java?

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.

How do I type a hierarchy in Eclipse?

Press Ctrl+Shift+H -or- from the Menu Bar go to Navigate | Open Type in Hierarchy. The "Open Type in Hierarchy" dialog is displayed.

What is type hierarchy programming?

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.


1 Answers

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.

like image 81
Rüdiger Herrmann Avatar answered Sep 21 '22 20:09

Rüdiger Herrmann