Overriding OperationBase Class Methods

Top  Previous  Next

The only methods of the OperationBase class that an external operation must override are OnInitialize and OnExecuteOperationInProjectItem. However, the external operation can be interested in performing some action in the following events:

If the operation uses a result window, it can override the OnAfterLocateXXX methods to be notified when the user has located a result in the result window. For example, the ControlTextSpellingReviewOperation overrides the OnAfterLocateComponentResult method to show a window with spelling corrections after the user has selected a control with spelling errors in the result window. See Adding Output to the Result Window.

Finally, the external operation must override other methods in the following cases:

The external operations provided as examples show the usage of all these cases.