blob: 1a6b856e798c59d5e6a1e1a18153d3ada44604d6 [file]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2008. This page is made available under license. For full details see the LEGAL in the documentation book that contains this page." >
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<title>
Opening an Editor for a Selected Element
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Opening an Editor for a Selected Element
</h1>
<p>
You can select the name of a type, method, or field in the Java source editor or in the scrapbook and open an editor on the definition of the element.
</p>
<ol>
<li>
In the Java editor, select the name of a type, method, or field. You can also just click into the name once.
</li>
<li>
Do one of the following:
<ul>
<li>
From the menu bar, select <strong>Navigate</strong> &gt; <strong>Open Declaration</strong>
</li>
<li>
From the editor's pop-up menu, select <strong>Open Declaration</strong>
</li>
<li>
Press <strong>F3</strong>
</li>
</ul>
</li>
</ol>
<p>
or
</p>
<ol>
<li>
Hold down the <strong>Ctrl</strong> key.
</li>
<li>
In the Java editor, move the mouse over the name of a type, method, or field until the name becomes underlined.
</li>
<li>
Click the hyperlink once.
</li>
</ol>
<p>
If there are multiple definitions of the same name, a dialog is shown, and you can select one definition that you want to open.
An editor opens containing the selected element.
</p>
<p>
<img src="../images/ngrelc.png" alt="Related concepts" border="0" >
</p>
<p>
<a href="../concepts/concept-java-editor.htm">Java editor</a>
</p>
<p>
<img src="../images/ngrelr.png" alt="Related reference" border="0" >
</p>
<p>
<a href="../reference/ref-menu-navigate.htm">Navigate menu</a><br>
<a href="../reference/views/ref-viewsandeditors.htm">Views and editors</a>
</p>
</body>
</html>