Use this dialog box to specify options for the Convert Anonymous Class to Inner refactoring command. You can use the Convert Anonymous Class to Inner command to convert an anonymous class to an inner class that contains a name and constructor. When you use this operation, a new inner class is created and the anonymous inner class is replaced with a call to the new inner class.
You can open the Convert Anonymous Class to Inner dialog box from the Source Editor. Place the insertion point in the anonymous inner class that you want to convert and choose Refactor > Convert Anonymous Class to Inner.
The dialog box has the following fields:
If Preview All Changes is not selected, the refactoring is done immediately after you click Next.
If you select the Preview All Changes checkbox, you need to follow these steps to complete the refactoring:
The Refactoring window opens and displays a tree view of the code to be affected by the refactoring.