''

def is_enabled(self):

    state = False
    if stino.arduino_info[u'init_done']:
        file_path = self.view.file_name()
        if file_path:
            dir_path = os.path.dirname(file_path)
            dir_name = os.path.basename(dir_path)
            ptfm_path = stino.selected.get_build_platform_path(stino.arduino_info)
            cmd_file_path = os.path.join(ptfm_path, u'platform.txt')
            cmd_file = stino.plain_params_file.PlainParamsFile(cmd_file_path)
            cmds_info = cmd_file.get_info()
            bin_file_pattern = cmds_info.get(u'recipe.output.save_file', u'')
            if bin_file_pattern:
                bin_file_ext = os.path.splitext(bin_file_pattern)[(-1)]
                board_info = stino.selected.get_sel_board_info(stino.arduino_info)
                build_board = board_info.get(u'build.board', u'')
                build_mcu = board_info.get(u'build.mcu', u'')
                bin_file_name = (u'%s_%s_%s%s' % (dir_name, build_board, build_mcu, bin_file_ext))
                bin_file_path = os.path.join(dir_path, bin_file_name)
                if os.path.isfile(bin_file_path):
                    state = True
    return state
