mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-09 18:56:02 +02:00
compare curent with new before saving paths
This commit is contained in:
parent
fa1f547d4b
commit
64e41fec18
1 changed files with 4 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
||||||
package org.eclipse.cdt.internal.core.model;
|
package org.eclipse.cdt.internal.core.model;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.Collections;
|
import java.util.Collections;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -96,6 +97,9 @@ public class PathEntryStore extends AbstractCExtension implements IPathEntryStor
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setRawPathEntries(IProject project, IPathEntry[] newRawEntries) throws CoreException {
|
public void setRawPathEntries(IProject project, IPathEntry[] newRawEntries) throws CoreException {
|
||||||
|
if (Arrays.equals(newRawEntries, getRawPathEntries(project))) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project);
|
ICDescriptor descriptor = CCorePlugin.getDefault().getCProjectDescription(project);
|
||||||
Element rootElement = descriptor.getProjectData(PATH_ENTRY_ID);
|
Element rootElement = descriptor.getProjectData(PATH_ENTRY_ID);
|
||||||
// Clear out all current children
|
// Clear out all current children
|
||||||
|
|
Loading…
Add table
Reference in a new issue