Move Members Dialog
F6
Move Member refactoring dialog is invoked for static members selected in the Structure view, or in the editor.
Item | Description |
---|---|
Move members from | This read-only field displays the fully qualified name of the source class containing members to be moved. |
To (fully qualified name) | Specify the fully qualified name of the target class. |
Move as enum constant if possible | This option is useful when moving constants ( Say, we are moving class Events {
public static final String MOUSE_EVENT = "mouseEvent";
} to the enum enum ActionType {
;
String typeName;
ActionType(String name) {
typeName = name;
}
} If the option is on, we'll get the following result: enum ActionType {
MOUSE_EVENT("mouseEvent");
String typeName;
...
} If the option is off, the result will be: enum ActionType {
;
public static final String MOUSE_EVENT = "mouseEvent";
String typeName;
...
} |
Members to be moved (static only) | This table shows all static members detected in the specified class. Select checkboxes next to the members you want to move. |
Visibility | Specify visibility level. You can either specify it explicitly, or select Escalate to automatically raise it to a necessary level. |