Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a method list in Eclipse without inherited ones (shortcut)?

Everyone knows the Ctrl+Space shortcut in Eclipse but I got one question on that. If you use this shortcut, you'll get a list of visible methods and fields. e.g.:

JTable table = new JTable(dataModel);
table.<Ctrg+Space>

.. and you'll get a list of JTable methods, JComponent ones etc. So inherited methods are listed as well. Sometimes this list is very long...

My question is: Does Eclipse offer an option to hide the inherited methods? So I just get a list of methods of this specific class? E.g. when I use..

table.<Ctrg+Space>

..I'll get a list of JTable methods and the JComponent ones won't be listed.

Hope there is a way. To search in a method-result-list won't help, I think.

Cheers!

like image 670
eldiamo Avatar asked Feb 25 '12 16:02

eldiamo


People also ask

How do I display a method in eclipse?

It should be displayed by default in the Java perspective (which I assume you are using), but if you don't see it, you can display it from Window->Show View->Outline .

What Eclipse feature can help you enter a method by displaying a list of methods that are available from an object or class?

What you are referring to is called code completion and can be accessed with Ctrl + Space in Eclipse. This will list all variables, fields, methods, classes that is applicable in the current context. Also, there is Ctrl + O in Eclipse, which will give you a list of all the available methods in the current class.

How do I skip to the end of a line in Eclipse?

End key to move on end of the line, Home key to move on beggining of line. Same for NetBeans and IntellijIDEA.


1 Answers

Am not sure how to exactly achieve this, but if you place your cursor on JTable and press

Ctrl+F3

You should able to see the list of methods that are present only on Jtable.

like image 63
Sajan Chandran Avatar answered Nov 01 '22 09:11

Sajan Chandran