| <!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> |
| Override Methods |
| </title> |
| <link rel="stylesheet" href="../book.css" charset="ISO-8859-1" type="text/css"> |
| </head> |
| <body> |
| <h1> |
| Override methods |
| </h1> |
| <p> |
| This dialog lets you define methods to override. |
| </p> |
| <p> |
| Use <strong>Override/Implement Methods</strong> from the <a href="ref-menu-source.htm">Source menu</a> or the context menu on a selected type or on a text selection in a type. |
| </p> |
| <p> |
| The dialog presents all methods that can be overridden from superclasses or implemented from interfaces. Abstract methods or unimplemented methods are selected by default. |
| </p> |
| <p> |
| The tree view groups methods by the type declaring the method. If more than one type in the hierarchy declare the same method, the method is only shown once, grouped to the |
| first type in the list of supertypes that implements or defines this method. |
| </p> |
| <p> |
| The flat view shows only methods, sorted alphabetically. |
| </p> |
| <p> |
| When pressing <strong>OK</strong>, method stubs for all selected methods are created. |
| </p> |
| <table border="1" cellspacing="0" cellpadding="5" width="100%"> |
| <tr> |
| <th> |
| <p> |
| Option |
| </p> |
| </th> |
| <th> |
| <p> |
| Description |
| </p> |
| </th> |
| <th> |
| <p> |
| Default |
| </p> |
| </th> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <p> |
| <strong>Select methods to override or implement</strong> |
| </p> |
| </td> |
| <td valign="top"> |
| Select methods to override or implement |
| </td> |
| <td valign="top"> |
| Abstract methods from superclasses and unimplemented methods from interfaces are selected |
| </td> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <p> |
| <strong>Group methods by types</strong> |
| </p> |
| </td> |
| <td valign="top"> |
| <p> |
| Shows methods grouped by a list of the super types in which they are declared. |
| </p> |
| </td> |
| <td valign="top"> |
| <p> |
| selected |
| </p> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <p> |
| <strong>Select All</strong> |
| </p> |
| </td> |
| <td valign="top"> |
| <p> |
| Select all methods |
| </p> |
| </td> |
| <td valign="top"> |
| </td> |
| </tr> |
| <tr> |
| <td valign="top"> |
| <p> |
| <strong>Deselect All</strong> |
| </p> |
| </td> |
| <td valign="top"> |
| <p> |
| Deselect all methods |
| </p> |
| </td> |
| <td valign="top"> |
| </td> |
| </tr> |
| </table> |
| <p> |
| To enable / disable that Javadoc comments are added to the created methods go to the <a href="ref-preferences-code-generation.htm">Code Generation preference page</a> (Window |
| > Preferences > Java > Code Generation) and enable / disable <strong>Create Javadoc comments for methods and types</strong>. |
| </p> |
| <p> |
| For overridden methods you can choose to create non-Javadoc comments (<strong>Create non-Javadoc comments for overridden methods</strong>). The reason for creating |
| non-Javadoc comments is a feature of the Javadoc tool: Methods that override a method automatically get the comment of the overridden method if they don't specify an own |
| Javadoc comment. |
| </p> |
| <p> |
| <img src="../images/ngrelt.gif" alt="Related tasks" border="0" height="27" width="159"><br> |
| <a href="../tasks/tasks-43.htm">Overriding a method using the Hierarchy view</a><br> |
| <a href="../reference/ref-menu-source.htm">Source actions</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" width="324" height="14"></a> |
| </p> |
| </body> |
| </html> |
| |