doCancel method

void doCancel()

The diagram will call this method when the user wishes to cancel the current tool's operation. Typically this is called when the user hits the ESCAPE key. This should restore the original state of what was modified by this tool, and then it should call #stopTool. This method is not responsible for cleaning up any side-effects that should be performed by #doDeactivate and/or #doStop, which will always be called whether the tool stops normally or abnormally.

By default this method just sets #transactionResult to null and calls #stopTool. You will want to override this method even in tools that call #startTransaction and #stopTransaction, because the UndoManager might not be enabled. This method may be overridden. Please read the Introduction page on Extensions for how to override methods and how to call this base method. @expose

Implementation

void doCancel() {
  _i4.callMethod(
    this,
    'doCancel',
    [],
  );
}