Use to specify the target where selected methods and fields of the source are to be moved.
Element | Description |
---|---|
Move members from. |
Displays the name of the source class containing members to be moved. The value is already filled in and is read-only |
Target |
Displays fields for specifying a fully qualified name of the target class. |
Project |
Specifies the name of the project to which you are moving the members. |
Location |
Specifies the part of the project to which you are moving the members. The appropriate value here is generally Source Packages, but it is also possible to have other source roots represented in this field. |
Package |
Specifies the package of the project to which you are moving the members. |
To Class |
Specifies the class to which you are moving the members. |
Members to be moved. |
Lists all members detected in the source class.
Select checkboxes next to the members you want to move. You can move more than one member at a time. |
Visibility |
Specifies visibility level using six options available: Escalate, As is, Private, default, Protected, and Public. |
Escalate |
Automatically raises the visibility to a necessary level based on usages. |
As is |
Keeps the current visibility level of the member. |
Private |
Changes to or keeps the visibility private. |
default |
Changes to or keeps the visibility the default level. |
Protected |
Changes to or keeps the visibility protected. |
Public |
Changes to or keeps the visibility public. |
Javadoc |
Specifies whether the Javadoc documentation is to be kept as is or updated during the refactoring using the two options available (As is , Update ). |
Keep original method(s) and delegate to the moved method |
Keeps original methods signatures in the source class and lets them call the newly created method in the target class. |
Deprecate the old method(s) |
Deprecates the old methods in the source class after refactoring. |
The IDE displays an error message when target class is identical to source class or when target class belongs to the same target package.
The following table lists buttons that are available in the toolbar at the bottom of the Members list. Hold the cursor over a button to display a description of the command:
Element | Description |
---|---|
Show fields |
Displays fields in the list. |
Show static members |
Displays static members in the list. |
Show non-public members |
Displays non-public members in the list. |
Sort by name |
Displays members sorted by names. |
Sort by source |
Displays members sorted by their positions in the source code. |
Select all |
Selects all members in the list. |
Deselect all |
Deselects all members in the list. |
Click the black arrow in the center of the divider to toggle the display of the toolbar.
Related Topics
Developing Applications with NetBeans IDE,
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements; and to You under the Apache License, Version 2.0. |