Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

FAQ How do I open a type in a Java editor?

Revision as of 14:45, 14 March 2006 by Claffra (Talk | contribs)

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

Opening a given type in an editor can be done in many ways.


  • If you see the type in your editor, move the caret inside the name, or select the

type and press F3. This works inside javadoc comments.</li>



  • Hold down the Ctrl key and move the mouse around inside a Java editor.

You will notice types turning into hyperlinks: blue underlined names, just like in a Web browser.</li>



  • To open a dialog with a list of available types, press Ctrl+Shift+T.</li>



  • To open its type hierarchy, select a type in a Java editor, and press F4.</li>



  • To open a type hierarchy on any type, press Ctrl+Shift+H.</li>



  • To quickly navigate to a given type in the Package Explorer, give focus to the tree,

and start typing the name of the type. The Explorer will automatically scroll to the type, assuming that the type is visible and has not been filtered out of the view. This works in Windows only.</li>

Note that when opening a type hierarchy, there is a preference on the Java preference page to open the type in a new type hierarchy perspective versus simply opening a view. This is useful in conjunction with the preference to open perspectives in a new window on the Workbench > Perspectives preference page. This allows you to browse a hierarchy without cluttering and losing context in the editors and views in your main window.




See Also:

FAQ_How_do_I_use_the_keyboard_to_traverse_between_editors?

Back to the top