'method called by default via view.run_command;
used to dispatch to appropriate method'

def run_(self, action):

    if (not action):
        return
    try:
        lc_action = action.lower()
    except AttributeError:
        return
    if (lc_action == u'reset'):
        self.reset()
    elif (lc_action == u'enable'):
        self.enable(True)
    elif (lc_action == u'disable'):
        self.enable(False)
    elif (lc_action == u'on'):
        self.on_off(True)
    elif (lc_action == u'off'):
        self.on_off(False)
    elif (lc_action == u'lang-on'):
        self.on_off(True, guess_lang(self.view, self.view.file_name()))
    elif (lc_action == u'lang-off'):
        self.on_off(False, guess_lang(self.view, self.view.file_name()))
