Use this dialog box to specify options for the Extract Interface refactoring command. You can use the Extract Interface command to create a new interface based on public non-static methods in the selected class. When you use this operation, a new interface is created containing declarations for the the methods that you select to include in the interface. In addition, the current class is set to implement the new interface.
You can open the Extract Interface dialog box by choosing Refactor > Extract Interface after you have selected a class in the Source Editor, Projects window, or Files window.
The dialog box has the following fields:
Only public and non-static methods appear in this list.
If the class from which you are extracting an interface already implements an interface, the implemented interface is also listed. If you select the checkbox for that interface, the implements clause for that new interface is moved to the new interface that you are extracting.
If you want to preview the changes, 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.