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

Difference between revisions of "FAQ How do I open a type in a Java editor?"

 
m (Removed extraneous end-of-list tags (</li>) and extra lines)
 
(One intermediate revision by one other user not shown)
Line 2: Line 2:
  
  
* If you see the type in your editor, move the caret inside the name, or select the  
+
* 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.
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.
  
  
* Hold down the Ctrl key and move the mouse around inside a Java editor.
+
* To open a dialog with a list of available types, press Ctrl+Shift+T.
You will notice types turning into hyperlinks: blue underlined names, just like in a Web browser.</li>
+
  
  
 +
* To open its type hierarchy, select a type in a Java editor, and press F4.
  
  
* To open a dialog with a list of available types, press Ctrl+Shift+T.</li>
+
* To open a type hierarchy on any type, press Ctrl+Shift+H.
  
  
 +
* 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.
  
  
* To open its type hierarchy, select a type in a Java editor, and press F4.</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 &gt; Perspectives''' preference page.  This
 
+
allows you to browse a hierarchy without cluttering and losing context in the editors and views in your main window.
 
+
 
+
* 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 &gt; Perspectives''' preference page.  This
+
allows you to browse a hierarchy without cluttering and losing context in the editors
+
and views in your main window.
+
 
+
 
+
  
  
Line 50: Line 31:
  
 
[[FAQ_How_do_I_use_the_keyboard_to_traverse_between_editors%3F]]
 
[[FAQ_How_do_I_use_the_keyboard_to_traverse_between_editors%3F]]
 +
 +
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>

Latest revision as of 12:21, 7 March 2011

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.


  • 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.


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


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


  • To open a type hierarchy on any type, press Ctrl+Shift+H.


  • 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.


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?


This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.

Back to the top