Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to select which class to display in class hierarchy in Eclipse?

I have turned on class hierarchy view for Java in eclipse and it is showing some arbitrary class, unrelated with my editor or something other apparently.

Link with editor option is on and has no effect.

How to fix?

UPDATE

Link with editor is in Hierarchy view:

enter image description here

like image 684
Dims Avatar asked Feb 17 '14 09:02

Dims


1 Answers

Here is Erich Gamma's response from 2002: "The back linking works only when the type is visible in the hierarchy. For performance reasons (type hierarchy computation is expensive) we don't want to recompute a type hierarchy on editor switching."

It seems they have never addressed this counter-intuitive behavior.

See the following bugs for details:

  • https://bugs.eclipse.org/bugs/show_bug.cgi?id=8748
  • https://bugs.eclipse.org/bugs/show_bug.cgi?id=41525
like image 186
Rex Sheridan Avatar answered Sep 29 '22 23:09

Rex Sheridan