简体   繁体   中英

In eclipse, how to display inherited members in Outline view?

Typing Ctrl+O twice in editor when a java type is selected pops-up an outline context dialog that displays the members && inherited members. How can I have this in the main outline view?

right click -> Open Type Hierarchy?

It does not show it in the same pane but I think you can see what you're looking for.

This is currently (Eclipse 3.6 Helios) not possible in outline view, but you can achieve similiar functionality through "Type Hierarchy" view:

  1. Assuming you have opened a class that you want to inspect
  2. Press F4 - this will open the "Type Hierarchy" view for that class
  3. "Type hierarchy" view is divided to two parts - an upper one which contains the hierarchy itself and the lower one, which contains members of the selected class
  4. In the lower view you can set the filter to show also all inherited members (a button with hint "Show All Inherited members")

Personally I belive that same filter should be available even in the outline view, but at least it is somewhere ;)

There is a feature request already, but there are not enough votes for it...

https://bugs.eclipse.org/bugs/show_bug.cgi?id=8625

Looks like you can't do it.

Maybe you should file it as an improvement request.

You should try Type Hierarchy .
Right Click the class and Open Type Hierarchy.
There are so many option look for Show all inherited members .
It can be found at the lover section of the Type Hierarchy Widget .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM