1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Fix for Bug 176706 - Save file problem

This commit is contained in:
Anton Leherbauer 2007-03-12 09:40:55 +00:00
parent ccd30b4ad3
commit 509a6ce37e
2 changed files with 3 additions and 1 deletions

View file

@ -114,6 +114,7 @@ public class BasicCEditorTest extends BaseUITestCase {
assertEquals("Edit failed", newtext, newContent.substring(0, newtext.length()));
// save
fEditor.doSave(new NullProgressMonitor());
assertFalse("Editor is still dirty", fEditor.isDirty());
// close and reopen
EditorTestHelper.closeEditor(fEditor);
setUpEditor(file);
@ -141,6 +142,7 @@ public class BasicCEditorTest extends BaseUITestCase {
assertEquals("Edit failed", newtext, newContent.substring(0, newtext.length()));
// save
fEditor.doSave(new NullProgressMonitor());
assertFalse("Editor is still dirty", fEditor.isDirty());
// close and reopen
EditorTestHelper.closeEditor(fEditor);
setUpEditor(tmpFile);

View file

@ -863,7 +863,7 @@ public class CDocumentProvider extends TextFileDocumentProvider {
}
};
}
return super.createSaveOperation(element, document, overwrite);
return null;
}
/**