Introduce Parameter Dialog Box
See Also
Use this dialog box to specify options for the Introduce Parameter refactoring command.
You can use the Introduce Parameter command to introduce a new parameter to a method.
You can open the Introduce Parameter dialog box by selecting the expression to be replaced by a parameter and choosing Refactor > Introduce Parameter from either the main IDE's or popup menu.
The dialog box has the following fields:
- Name. Enter the parameter name.
- Declare Final. Select to declare the parameter final.
- Replace All Occurrences. Select to replace all the found occurrences with the references to the new parameter.
- Generate Javadoc for this method. Select to create Javadoc for the method.
- Code Generation.
Select either of the following options to use:
- Update Existing Method. Select to add a new parameter to an existing method if it is possible to change all the existing method calls.
- Create new Method and Delegate from Existing Method. Select to define new parameter in a new, overloading method. Existing method calls will not be changed.
- You should always perform a clean build after completing
any refactoring commands. You can do a clean build by right-clicking the project's
node in the Projects window and choosing Clean and Build Project.
- See Also
- About Refactoring
- Refactoring: Quick Reference
- Undoing Refactoring Changes
Legal Notices