Create Interface Class In New File

An error is triggered when trying to implement a non existing interface class.

Place the editor cursor on the error’s line and press Ctrl+1, select Create interface class ‘…’ in new file from the list of quick fix proposals and press Enter.

../../_images/sv_quick_fix_create_non_ex_interface_class.png

A wizard will pop up. Fill in the name and the directory path of the new file.

../../_images/sv_quick_fix_wizard_non_ex_interface_class.png

The interface class is created and the new file opens.

../../_images/sv_quick_fix_create_non_ex_interface_class_result.png

Note

An include statement is added inside the scope of the child class.

../../_images/sv_quick_fix_create_non_ex_interface_class_include_statement.png

Note

If the implemented interface class is parameterizable, the definition is computed accordingly with its value or type parameters.