Rename Method dialog box

This is a feature of JBuilder Professional and Enterprise.

The Rename Method dialog box renames a method. Rename refactoring a method renames the method, all declarations of that method, and all usages of that method. The method can be renamed from the selected class down in the hierarchy or in the entire hierarchy. A forwarding method, that passes on the method call to the new method, can be created. This allows your public API to remain intact.

Note: Renaming a method does not rename overloaded methods; that is, methods with the same name but with different method signatures.

To display this dialog box, right-click the method name in the editor or in the UML class diagram. Choose Rename.

Old Name

The existing name of the method.

New Name

The new name of the method.

Refactor Ancestors

Renames methods in classes that this class inherits from. Turn off this option to rename the method only in this class and in its descendents.

Create Forwarding Method

Creates a forwarding method for the renamed method.

View References Before Refactoring

Displays the potential changes in the Refactoring tab of the message pane. The Refactoring button in the toolbar must be selected in order to complete the refactoring.

OK

Completes the refactoring.

See also