Change Method Parameters Dialog Box

Use to specify options for the Change Method Parameters refactoring command.

Element Description

Parameters

Lists parameters for the method. Click Add, Move Up, and Move Down to add and rearrange the order of parameters.

Click Remove to remove any parameters that you have added in the dialog box but that you do not want to keep.

Click in a cell in the method type, name, and default value columns of the Parameters table to edit a value.

Press Ctrl-Space to use code completion to choose a parameter type and name.

Click the ellipsis button (...) on the left of the Type and Return type fields to display the Find Type dialog box.

Access

Displays the four possible accessibility modifiers (public, protected, default, and private).

Select the accessibility modifier that you want the method to have.

Return type

Specifies a method's return type.

Press Ctrl+Space to use the IDE's code completion feature.

Code Generation

Generates the selected items: Update Existing Method and Create new Method and Delegate from Existing Method.

    Update Existing Method

Regenerates the method and incorporate the most recent changes into the method's code

    Create new Method and Delegate from Existing Method

Generates a new delegate method.

    Method Signature Preview

(read-only) Displays what the method signature looks like if you apply the changes that you have specified in the dialog box.



Related Topics

Developing Applications with NetBeans IDE,

Copyright © 2014, Oracle and/or its affiliates. All rights reserved.