1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Fixes a couple of cdtproject bugs 40103.

This commit is contained in:
Doug Schaefer 2003-07-16 20:57:09 +00:00
parent 37bc768c73
commit 176c8d7bf9
2 changed files with 5 additions and 6 deletions

View file

@ -206,11 +206,10 @@ public class StandardBuildManager implements IScannerInfoProvider {
// Clear out all current children
// Note: Probably would be a better idea to merge in the data
NodeList nodes = rootElement.getChildNodes();
for (int i = 0; i < nodes.getLength(); ++i) {
Node node = nodes.item(i);
if (node instanceof Element)
rootElement.removeChild(nodes.item(i));
Node child = rootElement.getFirstChild();
while (child != null) {
rootElement.removeChild(child);
child = rootElement.getFirstChild();
}
// Save the build info

View file

@ -577,7 +577,7 @@ public class CDescriptor implements ICDescriptor {
private void decodeProjectData(Element data) throws CoreException {
Document doc = getProjectDataDoc();
doc.getDocumentElement().appendChild(doc.importNode(data, true));
doc.replaceChild(doc.importNode(data, true), doc.getDocumentElement());
}
public Element getProjectData(String id) throws CoreException {