Change Parameters Of Method dialog box

This is a feature of JBuilder SE and Enterprise.

The Change Parameters Of Method dialog box adds, delete and re-orders a method's parameters. To display this dialog box, right-click the signature of the method you want to change parameters for and choose Change Parameters.

Note: You can edit a newly added parameter before you close the Change Parameters dialog box; however, you cannot edit an existing parameter.

Class

The class in which this method is located. This field is read-only.

Method

The name of the method. This field is read-only.

Name

The name of the parameter.

Type

The Java type of the parameter.

State

Information about the parameter. Indicates if the parameter is new or existing and if it is in use in your code. For new parameters, it shows the default value.

Add

Adds a new parameter. Displays the Add New Parameter dialog box, where you choose the parameter's type, enter a name for the parameter, and assign a default value.

Remove

Deletes a newly-added parameter. You cannot remove existing, in use parameters, but you can delete parameters that are not in use.

Edit

Edits a newly-added parameter. (Existing parameters cannot be edited.) Displays the Edit New Parameter dialog box, where you edit the parameter's type, name, and default value.

Move Up

Moves the parameter up in the list, toward the beginning of the method signature.

Move Down

Moves the parameter down in the list, toward the end of the method signature.

Refactor Ancestors

Changes method signatures for methods in classes that this class inherits from. Turn off this option to change parameters only in this class and in its descendents.

Create Forwarding Method

Creates a forwarding method for the refactored 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

Displays the Refactoring tab (if the preview option is selected) or completes the refactoring.

See also