blob: 2e35960999df2ef28222576ed3e3008527fe3942 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
<html>
<head>
<title>
Navigate to a Java Element's Declaration
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<meta http-equiv="Content-Style-Type" content="text/css">
</head>
<body>
<h1>
Navigate to a Java element's declaration
</h1>
<ol>
<li> Open the <em>junit.samples.money.MoneyTest.java</em> file in the Java editor.
</li>
<li> On the first line of the MoneyTest class declaration, select the
superclass TestCase and either
<ul>
<li> from the menu bar select Navigate &gt; Open Declaration or </li>
<li> press <kbd>F3</kbd>. </li>
</ul>
<p>
<img src="../images/qs-24.gif" width=525 height=410 alt="Menu open declaration">
</p>
The TestCase class opens in the editor area and is also represented in
the Outline view. <br><em>Note: This command also works on methods and fields.</em>
<p>
<img src="../images/qs-25.gif" width=484 height=249 alt="Opened declaration">
</p>
</li>
<li> With the <em>TestCase.java</em> editor open and the class declaration
selected:
<ul>
<li> from the menu bar select Navigate &gt; Open Type Hierarchy or </li>
<li> press <kbd>F4</kbd>. </li>
</ul>
<p>
<img src="../images/qs-26.gif" width=378 height=414 alt="Menu open type hierarchy">
</p>
</li>
<li>
The Hierarchy view opens with the TestCase class displayed.
<p>
<img src="../images/qs-27.gif" width=237 height=556 alt="Type hierarchy view">
</p>
<em>Note: You can also open editors on types and methods in the Hierarchy view.</em>
</li>
</ol>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159">
</p>
<p>
<a href="../tasks/tasks-37.htm">Using the Hierarchy view</a><br>
<a href="../tasks/tasks-39.htm">Opening a type hierarchy on a Java element</a><br>
<a href="../tasks/tasks-40.htm">Opening a type hierarchy on the current text selection</a><br>
<a href="../tasks/tasks-73.htm">Opening an editor for a selected element</a><br>
</p>
<p>
<img src="../images/ngrelr.gif" width=159 height=27 alt="Related reference">
</p>
<p>
<a href="../reference/ref-type-hierarchy.htm">Type Hierarchy View</a><br>
</p>
<p>
<a href="../hglegal2003.htm"><img src="../images/ngibmcpy2003.gif" width=324 height=14 alt="Copyright (c) 2000, 2003 IBM Corporation and others. All Rights Reserved." border="0"></a>
</p>
</body>
</html>