RAD Studio (Common)
ContentsIndex
PreviousUpNext
Extract Interface or Superclass dialog box

RefactorExtract Superclass (or: Extract Interface) 

You can open the Extract Interface/Superclass dialog box from the Refactoring main menu, or by using the RefactoringExtract Superclass (or Extract Interface) commands on the context menu of applicable class diagram elements. The Extract Interface command is available for classes, structures, methods, properties, events, and indexers. The Extract Superclass command is available for classes, interfaces (Extract Superinterface), methods, properties, events, fields, and indexers.

Note: This feature is available for implementation projects.

Interface/Superclass name 
Enter the name of the interface or superclass to be created.  
Namespace 
Use this field to specify a namespace where the interface/superclass will reside. You must enter a fully-qualified name for the namespace. Alternatively, press the button and select the desired target namespace.  
Select members 
A table displays the detected members that you can choose to extract to the new interface or superclass. By default, all detected members are selected. Use the checkboxes in the first column of the table to indicate which members to extract.  
View references before refactoring 
By default, View references before refactoring is checked. If this option is checked when you click OK, the Refactoring window opens allowing you to review the refactoring before committing to it. If this option is cleared when you click OK, the Refactoring window opens with the extraction completed.  
 
OK 
Opens the Refactoring window.  
Cancel 
Discards all changes and closes the dialog.  
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!