blob: 46f1c5bc5f95d034b4d44a6614a29c6a53f378f5 [file]
<!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">
<title>
Inlining a constant
</title>
<link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css">
</head>
<body>
<h1> Converting a local variable to a field</h1>
To convert a local variable to a field:
<ul>
<li> In a Java editor or in one of the java views, select the local variable</li>
<li> Do one of the following:
<ul>
<li> From the menu bar, select <strong>Refactor &gt; Convert Local Variable
to Field</strong> or </li>
<li> From the editor's pop-up menu, select <strong>Refactor &gt; Convert
Local Variable to Field</strong></li>
</ul>
</li>
</ul>
<img src="../images/ngrelr.gif" alt="Related reference" border="0" height="27" width="159"> <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-23.htm">Refactoring preferences</a>
<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>