Extract Interface or Superclass dialog box

From Appmethod Topics
Jump to: navigation, search

Go Up to Refactor Menu

Refactor > Extract Superclass (or: Extract Interface)

You can open the Extract Interface/Superclass dialog box from the Refactoring main menu, or by using the Refactoring > Extract 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.


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.



Opens the Refactoring window.


Discards all changes and closes the dialog.

See Also