Aqua 2024.3 Help

Inline dialogs

Inline Variable dialog

The Inline Variable refactoring allows you to replace a redundant variable with its value. See examples.

To access the Inline Variable dialog through a menu item or the keyboard shortcut, place the caret at the variable to be inlined.

Inline variable <variable name>? (<the number of variable occurrences>)

Inline to Anonymous Class dialog

Item

Description

All references and remove the class

Select this option to replace all the class references with its code and remove the class.

This reference only and keep the class

Use this option to replace only the current class reference.

Search in comments and strings

Select this checkbox to display the usages of methods in comments and strings in the Refactoring Preview tool window.

Search for text occurrences

Select this option to apply the changes to documentation, HTML, JSP, and other files included in your project.

Inline method dialog

Inline Method refactoring places method's body into the body of its caller(s). You have the option to:

  • inline all occurrences of the method, and delete the method

  • inline only a single occurrence and retain the method

Item

Description

Inline all usages, remove the method

Select this option to replace all the method calls with its code and remove the method.

Inline this usage only, keep the method

Select this option to replace only the current method call.

Search in comments and strings

Select this checkbox to display the usages of methods in comments and strings in the Refactoring Preview tool window.

Search for text occurrences

Select this option to apply the changes to documentation, HTML, JSP, and other files included in your project.

Preview

Click this button to see the expected changes prior to actually performing the refactoring.

Refactor

Click this button to perform the refactoring right away.

Inline super class dialog

Inline Super Class refactoring results in pushing superclass' methods into the class where they are used, and removing the superclass.

Item

Description

JavaDoc for inlined members

In this area you can select an action that can be applied to JavaDoc. You can choose from the following options:

  • As is - lets you leave the inline documentation where it is.

  • Copy - lets you copy the inline documentation to the destination superclass without removing it from its current location.

  • Move - lets you move the inline documentation to the destination superclass and delete it from its current location.

Inline all references and remove the class

Select this radio button to replace all the super class references with its code and remove the super class.

Inline this reference only and keep the super class

Select this radio button to replace only the current super class reference.

Last modified: 23 October 2024