blob: e544ea5435e8c8d44936877dd03f006c64dd8224 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//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>
Overriding a method
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1>
Overriding a method using the Hierarchy view
</h1>
<p>
You can use the Hierarchy view to override a method:
</p>
<ol>
<li>
Open the type hierarchy for the type in which you want to add the overriding method. <em>Note: It does not matter whether the subtypes, supertypes, or type hierarchy is
displayed.</em>
</li>
<li>
In the list pane of the Hierarchy view, make sure that the <strong>Show All Inherited Members</strong> button is active in order to see all the
inherited members. <em>Note: The selection might not show all members if a filter (such as <strong>Hide Fields</strong> or <strong>Hide Static Members</strong>) is
active.</em>
</li>
<li>
From the pop-up menu of one of the inherited methods, select <strong>Override in <em>class name</em></strong> (where <em>class name</em> is the name
of the class in which the method will be created).
</li>
</ol>
<img src="../images/ngrelc.gif" alt="Related concepts" border="0" height="27" width="159">
<p>
<a href="../concepts/concepts-1.htm">Java development tools (JDT)</a>
</p>
<p>
<img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159">
</p>
<p>
<a href="tasks-37.htm">Using the Hierarchy view</a><br>
<a href="tasks-87.htm">Extracting a method</a><br>
<a href="tasks-44.htm">Finding overridden methods</a><br>
<a href="tasks-39.htm">Opening a type hierarchy on a Java element</a><br>
<a href="tasks-96.htm">Renaming a method</a>
</p>
<p>
<img src="../images/ngrelr.gif" alt="Related reference" border="0" height="27" width="159">
</p>
<p>
<a href="../reference/ref-dialog-override-method.htm">Override methods</a><br>
<a href="../reference/ref-menu-source.htm">Source menu</a><br>
<a href="../reference/ref-type-hierarchy.htm">Type Hierarchy view</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>