blob: 656535cc80c0c414678afc76f7052eb50b3fc56d [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]">
<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.
</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>
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.gif" alt="Related concepts" border="0" height="27" width="159">
</p>
<p>
<a href="../concepts/concepts-7.htm">Java editor</a>
</p>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159">
</p>
<p>
<a href="tasks-54.htm">Using the Java editor</a>
</p>
<p>
<img src="../images/ngrelr.gif" alt="Related reference" border="0" height="27" width="159">
</p>
<p>
<a href="../reference/ref-menu-navigate.htm">Navigate menu</a><br>
<a href="../reference/ref-24.htm">Views and editors</a>
</p>
<p>
<a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0" height="14" width="324"></a>
</p>
</body>
</html>