doActivate method

void doActivate()

The Diagram calls this method after setting Diagram#currentTool, to make the new tool active. This should set #isActive to true. Overrides of this method might call #startTransaction, if this tool's activity involves modification of the model. Implementations of this method can look at Diagram#lastInput to get the mouse event and input state.

You should call this method only after setting Diagram#currentTool to the Tool that you want to activate.

By default this only sets #isActive to true. This method may be overridden. Please read the Introduction page on Extensions for how to override methods and how to call this base method.

If you override this method, it is commonplace to also override #doDeactivate to clean up whatever you set up in this method. @expose

Implementation

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