Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlain Magloire2004-09-08 20:39:27 +0000
committerAlain Magloire2004-09-08 20:39:27 +0000
commitb04c9b24caad7ea53065bf0bc2dc6dc6c8111f73 (patch)
tree41c1d82af577c17ce08c98c59ab3522d1b3f36a9
parentaaf8173eba343ad6a28be0641fec0fd27929f72c (diff)
downloadorg.eclipse.cdt-b04c9b24caad7ea53065bf0bc2dc6dc6c8111f73.tar.gz
org.eclipse.cdt-b04c9b24caad7ea53065bf0bc2dc6dc6c8111f73.tar.xz
org.eclipse.cdt-b04c9b24caad7ea53065bf0bc2dc6dc6c8111f73.zip
2004-09-08 Alain Magloire
Fix for PR 73459 * src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java
-rw-r--r--core/org.eclipse.cdt.ui/ChangeLog5
-rw-r--r--core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java2
2 files changed, 6 insertions, 1 deletions
diff --git a/core/org.eclipse.cdt.ui/ChangeLog b/core/org.eclipse.cdt.ui/ChangeLog
index 68f08595873..e0b290801c2 100644
--- a/core/org.eclipse.cdt.ui/ChangeLog
+++ b/core/org.eclipse.cdt.ui/ChangeLog
@@ -1,5 +1,10 @@
2004-09-08 Alain Magloire
+ Fix for PR 73459
+ * src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java
+
+2004-09-08 Alain Magloire
+
Fix for PR 69330
* src/org/eclipse/cdt/internal/ui/editor/CContentOutlinePage.java
* src/org/eclipse/cdt/internal/ui/editor/CContentOutlinerProvider.java
diff --git a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java
index 8c5dd27ef5e..03ca4e8a8d1 100644
--- a/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java
+++ b/core/org.eclipse.cdt.ui/src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java
@@ -870,7 +870,7 @@ public class CDocumentProvider extends TextFileDocumentProvider {
IResource resource= info.fCopy.getResource();
//Assert.isTrue(resource instanceof IFile);
- if (!resource.exists()) {
+ if (resource instanceof IFile && !resource.exists()) {
// underlying resource has been deleted, just recreate file, ignore the rest
createFileFromDocument(monitor, (IFile) resource, document);
return;

Back to the top