''

def is_enabled(self):

    state = False
    if stino.arduino_info[u'init_done']:
        build_enabled = stino.arduino_info[u'settings'].get(u'build_enabled')
        if build_enabled:
            file_path = self.view.file_name()
            sel_prog = stino.arduino_info[u'selected'].get(u'programmer')
            if (file_path and stino.c_file.is_cpp_file(file_path) and sel_prog):
                cmd = stino.selected.get_upload_command(stino.arduino_info, mode=u'program')
                if cmd:
                    get_info = stino.selected.get_sel_board_info
                    info = get_info(stino.arduino_info)
                    if info:
                        state = True
    return state
