blob: 65cc636dc72ce8080cce3efe0dd765ee3ac4dd56 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//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">
<title>
Replacing a single reference to a type with a reference to one of its supertypes
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1> Replacing a single reference to a type with a reference to one of its supertypes</h1>
To replace a single reference to a type with a reference to one of its supertypes:
<ul>
<li> In the Java editor, select the type reference, or the declaration of a field, parameter, or local variable</li>
<li> Do one of the following:
<ul>
<li> From the menu bar, select <strong>Refactor &gt; Generalize Declared Type</strong> or </li>
<li> From the editor's pop-up menu, select <strong>Refactor &gt; Generalize Declared Type</strong> </li>
</ul>
</li>
</ul>
<p>You will be prompted for the type to which you would like to update the reference. If the
reference can be safely changed to the new type, the refactoring proceeds.</p>
<img src="../images/ngrelr.png" alt="Related reference" border="0" > <br>
<a href="../reference/ref-menu-refactor.htm">Refactoring actions</a> <br>
<a href="../reference/ref-117.htm">Refactoring dialogs</a> <br>
<a href="../reference/ref-13.htm">Java preferences</a>
</body>
</html>