*
* @param name the name of the plugin
* @param selected true, if selected; false, otherwise
*/
public void setPluginSelected(String name, boolean selected) {
PluginInformation pi = getPluginInformation(name);
if (pi != null) {
selectedPluginsMap.put(pi,selected);
if (pi.isUpdateRequired()) {
pendingDownloads.add(pi.name);
}
}
if (!selected) {
pendingDownloads.remove(name);