Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorAlena Laskavaia2008-11-03 16:17:20 +0000
committerAlena Laskavaia2008-11-03 16:17:20 +0000
commita05fe1c53be06bd738ec434ba9f19516b0a63f05 (patch)
tree280fe7550fdebda9527e4957a18e85c56061c5ea /build
parent311dea1c0f27a7c2abc6e536a812a136c0138a37 (diff)
downloadorg.eclipse.cdt-a05fe1c53be06bd738ec434ba9f19516b0a63f05.tar.gz
org.eclipse.cdt-a05fe1c53be06bd738ec434ba9f19516b0a63f05.tar.xz
org.eclipse.cdt-a05fe1c53be06bd738ec434ba9f19516b0a63f05.zip
[231458] - applied patch for loosing error parsers settings
Diffstat (limited to 'build')
-rw-r--r--build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java18
1 files changed, 5 insertions, 13 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
index 73b520ef3a5..2b500c5c4dd 100644
--- a/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
+++ b/build/org.eclipse.cdt.managedbuilder.core/src/org/eclipse/cdt/managedbuilder/internal/core/Configuration.java
@@ -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);
}
}

Back to the top