Skip to main content
summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorAlain Magloire2004-03-30 00:27:41 -0500
committerAlain Magloire2004-03-30 00:27:41 -0500
commitce09c92287317011045fa8448f8f4fa0d7af12d2 (patch)
tree4a257a93ed5b834cc37a37424f268e69cce8f623 /core
parentb5f7b12be4bf6cc34db88bd97a7d211ca33b100d (diff)
downloadorg.eclipse.cdt-ce09c92287317011045fa8448f8f4fa0d7af12d2.tar.gz
org.eclipse.cdt-ce09c92287317011045fa8448f8f4fa0d7af12d2.tar.xz
org.eclipse.cdt-ce09c92287317011045fa8448f8f4fa0d7af12d2.zip
reset the nonCResource in when the CProject is close
Diffstat (limited to 'core')
-rw-r--r--core/org.eclipse.cdt.core/ChangeLog6
-rw-r--r--core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java4
2 files changed, 8 insertions, 2 deletions
diff --git a/core/org.eclipse.cdt.core/ChangeLog b/core/org.eclipse.cdt.core/ChangeLog
index 2721c5ce0e..a1cd9aa8c9 100644
--- a/core/org.eclipse.cdt.core/ChangeLog
+++ b/core/org.eclipse.cdt.core/ChangeLog
@@ -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
diff --git a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
index d84fe25ff7..2eb2db0564 100644
--- a/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
+++ b/core/org.eclipse.cdt.core/model/org/eclipse/cdt/internal/core/model/DeltaProcessor.java
@@ -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]);
}
}

Back to the top