Adds the plugin list to the plugins for the account.
@param plugins The plugins to add
197262
public void add(Collection<Plugin> plugins)
    {
        for(Plugin plugin : plugins)
            this.plugins.put(plugin.getId(), plugin);
    }
257110
public void addAddon(MapAddon addon) {
		if (null == addons) {
			addons = new ArrayList<MapAddon>();
		}
		addons.add(addon);
	}
418135
@Override
	protected List<T> initialize(List<T> plugins) {

		List<T> result = super.initialize(plugins);
		Collections.sort(result, comparator);
		return result;
	}
376954
static void init(boolean includeAddOns) {
        loadedPlugins = new ArrayList<>(CoreFunctionality.getBuiltInActiveScanRules());
        if (includeAddOns) {
            loadedPlugins.addAll(ExtensionFactory.getAddOnLoader().getActiveScanRules());
        }
        //sort by the criteria below.
        Collections.sort(loadedPlugins, riskComparator);

        mapLoadedPlugins = new HashMap<>();
        for (Plugin plugin : loadedPlugins) {
            checkPluginId(plugin);
            mapLoadedPlugins.put(plugin.getId(), plugin);
        }
    }
96791
public void addAll(String[] strings) {
		if (strings == null) {
			return;
		}
		for (String string : strings) {
			add(string);
		}
	}
94846
def add_blacklisted_plugins(self, plugins):
        
        plugins = util.return_list(plugins)
        self.blacklisted_plugins.extend(plugins)
1002136
private void loadPreInstalledPlugins() {
    for (File file : listJarFiles(fs.getInstalledPluginsDir())) {
      PluginInfo info = PluginInfo.create(file);
      registerPluginInfo(info);
    }
  }
220313
public void addClasses(Set<Class<?>> classes) {
        for (Class<?> classToAdd: classes) {
            localClassCache.put(classToAdd.getName(), classToAdd);
        }
    }
1339788
private function _store_addons( $plugin_addons, $store = true ) {
            $this->_logger->entrance();

            $addons                       = self::get_all_addons();
            $addons[ $this->_plugin->id ] = $plugin_addons;
            self::$_accounts->set_option( 'addons', $addons, $store );
        }
1205108
public void addPlugins(final String s) {
        final StringTokenizer t = new StringTokenizer(s, REQUIREMENT_SEPARATOR);
        while (t.hasMoreTokens()) {
            plugins.add(t.nextToken());
        }
    }
755833
public void loadAddOns() {
        List<String> addonToLoad = getAddOnClasses();
        for (File f : new File(StaticConfiguration.PLUGINS_HOME).listFiles()) {
            if (f.isFile() && f.getName().toUpperCase().endsWith(".JAR")) {
                AddOnMetadata meta = AddOnMetadata.createAddOnMetadata(f);
                if (meta != null) {
                    mAddons.add(meta);
                    LOGGER.debug("load " + meta.getMainClass());
                    if (addonToLoad.contains(meta.getMainClass())) {
                        loadAddOn(meta);
                    }
                }
            }
        }
    }
633199
def set_blacklisted_plugins(self, plugins):
        
        plugins = util.return_list(plugins)
        self.blacklisted_plugins = plugins
18866
def add_plugin(self, plugin, call):
        
        meth = getattr(plugin, call, None)
        if meth is not None:
            self.plugins.append((plugin, meth))
162097
public void add(Collection<Dashboard> dashboards)
    {
        for(Dashboard dashboard : dashboards)
            this.dashboards.put(dashboard.getId(), dashboard);
    }
602446
public final void addAnnotations(final List<SgAnnotation> annotations) {
        if (annotations == null) {
            throw new IllegalArgumentException("The argument 'annotations' cannot be NULL!");
        }
        this.annotations.addAll(annotations);
    }
830430
def add_plugin(self, plugin):
        """"""
        # allow plugins loaded via entry points to override builtin plugins
        new_name = self.plugin_name(plugin)
        self._plugins[:] = [p for p in self._plugins
                            if self.plugin_name(p) != new_name]
        self._plugins.append(plugin)
1195703
def format_plugins(plugins):
    

    formatted = []
    for plugin_ in plugins:
        formatted_plugin = format_plugin(plugin_)
        formatted.append(formatted_plugin)

    return formatted