private void contributeMarkSets(IConfigurationElement runAttribute, IProfile profile, boolean addRepositories) { ParameterizedSafeRunnable providerExecutor = new ParameterizedSafeRunnable(runAttribute, profile); SafeRunner.run(providerExecutor); MarkSet[] aProfileMarkSets = providerExecutor.getResult(); if (aProfileMarkSets == null || aProfileMarkSets.length == 0 || aProfileMarkSets[0] == null) return; for (int i = 0; i < aProfileMarkSets.length; i++) { if (aProfileMarkSets[i] == null) { continue; } Collection<IArtifactKey> keys = markSet.get(aProfileMarkSets[i].getRepo()); if (keys == null) { if (addRepositories) { keys = new HashSet<IArtifactKey>(); markSet.put(aProfileMarkSets[i].getRepo(), keys); addKeys(keys, aProfileMarkSets[i].getKeys()); } } else { addKeys(keys, aProfileMarkSets[i].getKeys()); } } }
private void contributeMarkSets(IConfigurationElement runAttribute, IProfile profile, boolean addRepositories) { ParameterizedSafeRunnable providerExecutor = new ParameterizedSafeRunnable(runAttribute, profile); SafeRunner.run(providerExecutor); MarkSet[] aProfileMarkSets = providerExecutor.getResult(); if (aProfileMarkSets == null || aProfileMarkSets.length == 0 || aProfileMarkSets[0] == null) return; for (int i = 0; i < aProfileMarkSets.length; i++) { if (aProfileMarkSets[i] == null) { continue; } Collection<IArtifactKey> keys = markSet.get(aProfileMarkSets[i].getRepo()); if (keys == null) { if (addRepositories) { keys = new HashSet<IArtifactKey>(); markSet.put(aProfileMarkSets[i].getRepo(), keys); addKeys(keys, aProfileMarkSets[i].getKeys()); } } else { addKeys(keys, aProfileMarkSets[i].getKeys()); } } }
private void contributeMarkSets(IConfigurationElement runAttribute, IProfile profile, boolean addRepositories) { ParameterizedSafeRunnable providerExecutor = new ParameterizedSafeRunnable(runAttribute, profile); SafeRunner.run(providerExecutor); MarkSet[] aProfileMarkSets = providerExecutor.getResult(); if (aProfileMarkSets == null || aProfileMarkSets.length == 0 || aProfileMarkSets[0] == null) return; for (int i = 0; i < aProfileMarkSets.length; i++) { if (aProfileMarkSets[i] == null) { continue; } Collection<IArtifactKey> keys = markSet.get(aProfileMarkSets[i].getRepo()); if (keys == null) { if (addRepositories) { keys = new HashSet<>(); markSet.put(aProfileMarkSets[i].getRepo(), keys); addKeys(keys, aProfileMarkSets[i].getKeys()); } } else { addKeys(keys, aProfileMarkSets[i].getKeys()); } } }
private void contributeMarkSets(IConfigurationElement runAttribute, IProfile profile, boolean addRepositories) { ParameterizedSafeRunnable providerExecutor = new ParameterizedSafeRunnable(runAttribute, profile); SafeRunner.run(providerExecutor); MarkSet[] aProfileMarkSets = providerExecutor.getResult(); if (aProfileMarkSets == null || aProfileMarkSets.length == 0 || aProfileMarkSets[0] == null) return; for (int i = 0; i < aProfileMarkSets.length; i++) { if (aProfileMarkSets[i] == null) { continue; } Collection<IArtifactKey> keys = markSet.get(aProfileMarkSets[i].getRepo()); if (keys == null) { if (addRepositories) { keys = new HashSet<IArtifactKey>(); markSet.put(aProfileMarkSets[i].getRepo(), keys); addKeys(keys, aProfileMarkSets[i].getKeys()); } } else { addKeys(keys, aProfileMarkSets[i].getKeys()); } } }