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:
parent
fa1f547d4b
commit
64e41fec18
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue