Comparing Bound Methods

The OTDT provides a special action for comparing a role method with the base method to which it is bound.

To invoke this action the context menu of a callin method binding (in package explorer or outline) is used: Compare With > Bound Base Method. Alternatively, the context menu can also be used on a callin method.

When invoked this action opens a compare editor, the left hand side showing the role method and the right hand side showing the bound base method. The role method is editable whereas the base method is shown read-only.

The action is most useful for callin methods that are created by copying the base method in order to apply fine grained modifications. In this situation the compare editor can be used to inspect and update the modifications as well as adopt any changes that might have occurred to the base method during evolution.

Compare menu

Compare editor for bound methods