blob: 425565bf48ed80bfaae06433977fb090c571e8d1 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en" xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<meta name="copyright" content=
"Copyright (c) IBM Corporation and others 2000, 2011. 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=utf-8" />
<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>