1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +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 {
resetErrorParsers();
Set<String> oldSet = contributeErrorParsers(null, true);
if(oldSet == null)
oldSet = new LinkedHashSet<String>();
LinkedHashSet<String> newSet = new LinkedHashSet<String>();
newSet.addAll(Arrays.asList(ids));
newSet.remove(null);
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()]));
if(oldSet != null) {
oldSet.removeAll(Arrays.asList(ids));
removeErrorParsers(oldSet);
}
setErrorParserAttribute(ids);
}
}