Pull Up Dialog Box
See Also
Use this dialog box to specify options for the Pull Up refactoring command.
You can use the Pull Up command to move one or more members from
the selected class to a superclass.
You can open the Pull Up dialog box by choosing Refactor > Pull Up
after you have selected a class in the Source Editor, Projects window, or Files window.
The dialog box has the following fields:
- Destination Supertype. Drop-down list that contains the names of the superclasses for the
current class. Select the class that you want to move class members to.
- Members to Pull Up. Contains the list of inner classes, methods, and fields in
the current class.
Select the checkbox to the left of each member that you want to have
moved to the selected superclass.
Select the Make Abstract checkbox for any methods that you have selected to
pull up for which you would like to have the declaration in the superclass but keep the
implementation in the current class.
- Preview All Changes. If selected, a list of all
parts of your code to be affected by the refactoring is displayed in the
Refactoring window after you click Next. You can then clear any occurrences of
the name that you do not want changed.
If Preview All Changes is not selected, the refactoring is done immediately after you
click Next.
Unless you clear the Preview All Changes checkbox, you need to follow these steps
to complete the refactoring:
- Click Next.
The Refactoring
window opens and displays a tree view of the code to be affected by the refactoring.
- Check the items displayed in the Refactoring window to make sure that you want them
all changed. Clear the checkbox next to any parts of the code that
you do not want changed.
- Click Do Refactoring.
- 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