blob: 67f0d790b76de4da3a9ae6797dd2d285301296fa [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<meta name="copyright" content="Copyright (c) IBM Corporation and others 2000, 2005. 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">
<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. 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/concepts-7.htm">Java editor</a>
</p>
<p>
<img src="../images/ngrelt.png" alt="Related tasks" border="0" >
</p>
<p>
<a href="tasks-54.htm">Using the 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>