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:
parent
311dea1c0f
commit
a05fe1c53b
1 changed files with 5 additions and 13 deletions
|
@ -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()]));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue