mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
2004-09-08 Alain Magloire
Fix For PR 73459 * src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java
This commit is contained in:
parent
88738cfecc
commit
3bd502cbef
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2004-09-08 Alain Magloire
|
||||||
|
|
||||||
|
Fix For PR 73459
|
||||||
|
* src/org/eclipse/cdt/internal/ui/editor/CDocumentProvider.java
|
||||||
|
|
||||||
2004-09-08 Alain Magloire
|
2004-09-08 Alain Magloire
|
||||||
|
|
||||||
Fix for PR 73454.
|
Fix for PR 73454.
|
||||||
|
|
|
@ -870,7 +870,7 @@ public class CDocumentProvider extends TextFileDocumentProvider {
|
||||||
IResource resource= info.fCopy.getResource();
|
IResource resource= info.fCopy.getResource();
|
||||||
|
|
||||||
//Assert.isTrue(resource instanceof IFile);
|
//Assert.isTrue(resource instanceof IFile);
|
||||||
if (!resource.exists()) {
|
if (resource != null && !resource.exists()) {
|
||||||
// underlying resource has been deleted, just recreate file, ignore the rest
|
// underlying resource has been deleted, just recreate file, ignore the rest
|
||||||
createFileFromDocument(monitor, (IFile) resource, document);
|
createFileFromDocument(monitor, (IFile) resource, document);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue