def check_selection(self, value):

        if value != -1:
            option = self.menu_options[value]
            if option == "View":
                self.view.window().run_command("easy_diff_set_left")
            elif option == "Selection(s)":
                self.view.window().run_command("easy_diff_set_left_selection")
            elif option == "Clipboard":
                self.view.window().run_command("easy_diff_set_left_clipboard")
Check user's selection.
dataset/ETHPy150Open facelessuser/EasyDiff/easy_diff_basic.py/EasyDiffPanelSetLeftCommand.check_selection