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!
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 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.
End key to move on end of the line, Home key to move on beggining of line. Same for NetBeans and IntellijIDEA.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With