1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-04 23:05:47 +02:00

reset the nonCResource in when the CProject is close

This commit is contained in:
Alain Magloire 2004-03-30 05:27:41 +00:00
parent b5f7b12be4
commit ce09c92287
2 changed files with 8 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2004-03-30 Alain Magloire
Reset the non C Resource when the project is closed.
* model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
2004-03-29 David Inglis
Fixed shutdown problems. https://bugs.eclipse.org/bugs/show_bug.cgi?id=56584

View file

@ -353,7 +353,7 @@ public class DeltaProcessor {
protected void traverseDelta(ICElement parent, IResourceDelta delta) {
try {
ICElement current = updateCurrentDeltaAndIndex(delta);
if (current == null) {
if (current == null || (current instanceof ICProject && !((ICProject)current).getProject().isOpen())) {
nonCResourcesChanged(parent, delta);
} else {
parent = current;
@ -362,7 +362,7 @@ public class DeltaProcessor {
}
IResourceDelta [] children = delta.getAffectedChildren();
for (int i = 0; i < children.length; i++) {
traverseDelta(parent, children[i]);
traverseDelta(parent, children[i]);
}
}