Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse IDE. See list of all a class's inherited methods

Gonna keep this one short. Is there any way to click on the name of a class in the editor and see a list of all of its methods (inherited and otherwise) in another window?

This relates to my other question here: https://stackoverflow.com/questions/4457751/drag-and-drop-with-andengine-android, where I'm afraid I am overlooking a useful method.

Many thanks in advance for any help.

-Justian M.

like image 705
Justian Meyer Avatar asked Dec 16 '10 05:12

Justian Meyer


People also ask

How can I see my classes in Eclipse?

In Eclipse IDE, you can type CTRL + SHIFT + T in Windows or *nix or Command + SHIFT + T in Mac OSX to prompt an Open Type dialog box to find details about a specified Java class.


2 Answers

You can use ctrl+O in the target class and when you want to see its inherited methods/members you have to again press ctrl+O (two times ctrl+O). This will work for both source files and class files

like image 187
Pakka Techie Avatar answered Sep 19 '22 18:09

Pakka Techie


Press F4 to open a 'Type hierarchy view'. Alternatively, right-click in the editor and select the option 'Open type hierarchy' from the context menu. Then, in this view, find a button with a tooltip 'Show all inherited members' (it's the second one in the row with the currently selected class name in it). This will show you all inherited members of the class that is currently selected in the Type hierarchy view.
If you click the right-most button in the same row (the green circle), you will only see public members. Of course, it would be great if there was an option to see only non-private members, however, I haven't found such an option.
Still, the ability to see all the inherited members is probably good enough?

like image 37
Sandman Avatar answered Sep 19 '22 18:09

Sandman