1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

[231458] - applied patch for loosing error parsers settings

This commit is contained in:
Alena Laskavaia 2008-11-03 16:17:20 +00:00
parent 311dea1c0f
commit a05fe1c53b

View file

@ -2339,19 +2339,11 @@ public class Configuration extends BuildObject implements IConfiguration, IBuild
} else { } else {
resetErrorParsers(); resetErrorParsers();
Set<String> oldSet = contributeErrorParsers(null, true); Set<String> oldSet = contributeErrorParsers(null, true);
if(oldSet == null) if(oldSet != null) {
oldSet = new LinkedHashSet<String>(); oldSet.removeAll(Arrays.asList(ids));
LinkedHashSet<String> newSet = new LinkedHashSet<String>(); removeErrorParsers(oldSet);
newSet.addAll(Arrays.asList(ids)); }
newSet.remove(null); setErrorParserAttribute(ids);
LinkedHashSet<String> newCopy = (LinkedHashSet<String>)newSet.clone();
newSet.removeAll(oldSet);
oldSet.removeAll(newCopy);
Set<String> removed = oldSet;
Set<String> added = newSet;
removeErrorParsers(removed);
setErrorParserAttribute((String[])added.toArray(new String[added.size()]));
} }
} }