def METHOD_NAME(self):
    """Execute when the command is called."""
    super(Join, self).METHOD_NAME(name="Join")
    if not self.ui:
        return
    if not Gui.Selection.getSelection():
        self.ui.selectUi(on_close_call=self.finish)
        _msg(translate("draft", "Select an object to join"))
        self.call = self.view.addEventCallback(
            "SoEvent",
            gui_tool_utils.selectObject)
    else:
        self.proceed()