def METHOD_NAME(self):
    if self._active_tool:
        self._active_tool.propertyChanged.disconnect(self._onPropertyChanged)
    self._active_tool = Application.getInstance().getController().getActiveTool()
    if self._active_tool is not None:
        self._active_tool.propertyChanged.connect(self._onPropertyChanged)
        self._updateProperties()
    self.activeToolChanged.emit()