'This is a callback that is called when the plugin editor finishes.'

def _finishedEditingPlugin(self, path, plugin_type, plugin_name):

    del self.plugin_instances[path]
    try:
        self.w3af.plugins.reload_modified_plugin(plugin_type, plugin_name)
    except Exception as e:
        msg = 'The    plugin    you    modified    raised    the    following    exception'
        msg += ('    while    trying    to    reload    it:    "%s",' % str(e))
        msg += '    please    fix    this    issue    before    continuing    or    w3af    will    crash.'
        dlg = gtk.MessageDialog(None, gtk.DIALOG_MODAL, gtk.MESSAGE_INFO, gtk.BUTTONS_OK, msg)
        dlg.run()
        dlg.destroy()
    else:
        (newpath, column) = self.get_cursor()
        if (newpath == path):
            self.configure_plugin()
