Skip to main content

Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

SWT/Devel/Gtk/Useful Eclipse shortcuts

< SWT‎ | Devel‎ | Gtk
Revision as of 11:10, 5 August 2015 by Unnamed Poltroon (Talk) (Created page with "Often you will find that Eclipse has many tools useful for dealing with the nuances of the SWT code base. = Call Hierarchy = This tool, bound by default to Ctrl + Alt + H, is...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Often you will find that Eclipse has many tools useful for dealing with the nuances of the SWT code base.

Call Hierarchy

This tool, bound by default to Ctrl + Alt + H, is very useful for looking at which functions/methods call one another. I usually bind this to F1 (since I use it often and F1 is unbound), but that is totally a matter of personal preference.

If you are interested in what calls a certain method, simply move the cursor on it and type Ctrl + Alt + H, your keybinding, or right click, select "Open Call Hierarchy". A tabbed view will open in the bottom portion of Eclipse (by default) and a function hierarchy will be displayed.

Call hierarchy.png

Function Declaration

This tool, bound to F3 by default, displays the original declaration of a function. To use it, move the cursor over the name of the function/method and press F3, your keybinding, or right click and select "Open Declaration".

Sometimes functions/methods are overridden somewhere and you need to see where this occurs. To view the implementation of a function/method, hover the cursor over the function/method name, and hold Ctrl. A menu will appear: click "Open Implementation" instead of "Open Declaration".

Back to the top