def METHOD_NAME(self, pluginobj, category, name):
    """ Add a pluginobj to the plugin manager with the name and the category labels.
    The first plugin is default unless changed explicitly.
    """
    cat = self.all_dict.setdefault(category, {})
    self.first.setdefault(category, pluginobj)
    cat[name] = pluginobj
    logger.debug('adding plugin %s (category "%s") ' % (name, category))