1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

compare curent with new before saving paths

This commit is contained in:
David Inglis 2004-05-12 20:17:53 +00:00
parent fa1f547d4b
commit 64e41fec18

View file

@ -12,6 +12,7 @@
package org.eclipse.cdt.internal.core.model;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
@ -96,6 +97,9 @@ public class PathEntryStore extends AbstractCExtension implements IPathEntryStor
}
public void setRawPathEntries(IProject project, IPathEntry[] newRawEntries) throws CoreException {
if (Arrays.equals(newRawEntries, getRawPathEntries(project))) {
return;
}
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project);
Element rootElement = descriptor.getProjectData(PATH_ENTRY_ID);
// Clear out all current children