IntelliJ IDEA 12.1.0 Web Help

Refactor | Move
F6F6


This dialog opens when moving an out-of-package class, function, variable, constant or namespace into a package. You can specify the destination package and other, associated settings.

Note

The out-of-package entities being moved are referred to in the dialog as inner entities, for example, an inner class, an inner function, etc.

This dialog can be accessed from:

ItemDescription
<Entity> nameIf necessary, change the name of the entity (class, function, etc.) that you are moving.
Package nameSpecify the destination package.

Select the package from the list, or click browseButton and select the package in the Select Destination Package dialog.

Search in comments and stringsSelect this option to apply the changes to comments and strings.
Search for text occurrencesSelect this option to apply the changes to documentation, HTML, JSP and other files included in your project.
Move to another source folderIf this option is selected, you can select the target root, where the destination package will be located. If the option is not selected, only the current root is used.

Note

This option is disabled for the modules that contain a single source root.

See Also

Procedures:

Web Resources: