| <!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"> | |
| <meta name="GENERATOR" content="Mozilla/4.75 [en] (Windows NT 5.0; U) [Netscape]"> | |
| <title> | |
| Quick fix | |
| </title> | |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> | |
| </head> | |
| <body> | |
| <h1> | |
| Quick fix | |
| </h1> | |
| <p> | |
| For certain problems underlined with a problem highlight line, the Java editor can offer corrections. This is shown by the light bulb shown in the editor marker bar. | |
| </p> | |
| <p> | |
| <img src="../images/qs-37a.png" alt="A Java editor indicating a quick-fixable problem with a lightbulb in the editor marker bar"> <br> | |
| </p> | |
| To see the correction proposals use the Quick Fix action | |
| <ul> | |
| <li> | |
| Set the cursor inside the highlight range, and select <strong>Quick Fix</strong> from the <a href="ref-menu-edit.htm">Edit menu</a> or the context menu. | |
| </li> | |
| <li> | |
| Set the cursor inside the highlight range, and press Ctrl + 1 | |
| </li> | |
| <li> | |
| Click on the light bulb | |
| </li> | |
| </ul> | |
| <p>Quick fix is also available on a problem entry in the Problem view. The Quick Fix action will open a dialog to select the correction. | |
| <br> | |
| <br> | |
| Note that the light bulb is only a hint. It is possible that even with the light bulb shown, it turns out that no corrections can be offered.<br> | |
| A overview of quick fixes available in the Java editor can be found <a | |
| href="../concepts/cquickfix.htm">here</a>.<br><br>Quick Assists are proposals available even if there is no problem or warning. See the <a | |
| href="../concepts/cquickassists.htm">Quick Assist</a> page for more information.</p> | |
| <p> | |
| <img src="../images/ngrelc.png" alt="Related concepts" border="0" ><br> | |
| <a href="../concepts/cquickfix.htm">Quick Fix</a><br> | |
| <a href="../concepts/cquickassists.htm">Quick Assist<br> | |
| <a href="../concepts/concepts-7.htm">Java editor</a> | |
| </a></p> | |
| <p> | |
| <img src="../images/ngrelt.png" alt="Related tasks" border="0" ></p> | |
| <p> | |
| <a href="../tasks/tasks-175.htm">Using quick fix</a> | |
| </p> | |
| <p> | |
| <img src="../images/ngrelr.png" alt="Related reference"></p> | |
| <p> | |
| <a href="../reference/ref-21.htm">Java editor preferences</a><br> | |
| <a href="../reference/ref-menu-edit.htm">Edit menu</a> | |
| </p> | |
| </body> | |
| </html> | |