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:
parent
37bc768c73
commit
176c8d7bf9
2 changed files with 5 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue