This feature maintains consistency for operations in interfaces and their implementing classes.

For example, when a Class is set to implement an interface, the operations defined by the interface can be automatically created in the class. Similarly, should the name of a method change in the interface, all the redefined methods in its child classes are updated.

Automatic interface implementation actions
Model change on interface Automated behavior on inheriting classes

New method

Create a redefined new method with the same signature

Rename method

Rename the redefined method

Change method signature

Update the redefined method

Delete method

Keep the redefined method but remove the redefinition link and the override annotation

Enabling/Disabling the automatic interface implementation feature

The automatic interface implementation feature can be enabled or disabled in the automation parameters.

Launching the update manually

The automatic interface implementation can also be launched manually on model elements which is particularly useful when you have globally disabled the automatic interface implementation feature but you still want to punctually benefit from the feature.

From a selected Interface:

  1. Open the contextual menu

  2. Launch the image Update classes implementing this interface command

From a selected Class implementing an Interface:

  1. Open the contextual menu

  2. Launch the imageUpdate from implemented interface command