'Starts the plugin configuration.
:param tv: the treeview.'

def configure_plugin(self, tv=None):

    (path, column) = self.get_cursor()
    if (path is None):
        return
    if (len(path) == 1):
        plugin_type = self.treestore[path][3]
        desc = self.w3af.plugins.get_plugin_type_desc(plugin_type)
        label = helpers.clean_description(desc)
        self.config_panel.clear(label=label)
    else:
        plugin = self._get_plugin_inst(path)
        longdesc = plugin.get_long_desc()
        longdesc = helpers.clean_description(longdesc)
        self.mainwin.profiles.plugin_config(plugin)
        self.config_panel.config(self, plugin, longdesc)
