'When the user selects a plugin, it will change the text
displeyed on the entries to their corresponding values'

def on_plugin_selection(self, selection):

    try:
        (model, treeiter) = selection.get_selected()
        self.name_of_selected = model[treeiter][0]
        self.id_of_selected = model[treeiter][1]
        tool_version = model[treeiter][2]
        plugin_version = model[treeiter][3]
        self.setSettingsView()
        self.nameEntry.set_label(self.name_of_selected)
        if tool_version:
            self.versionEntry.set_label(tool_version)
        else:
            self.versionEntry.set_label('')
        if plugin_version:
            self.pluginVersionEntry.set_label(plugin_version)
        else:
            self.pluginVersionEntry.set_label('')
    except TypeError:
        pass
