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:
parent
ccd30b4ad3
commit
509a6ce37e
2 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
|
@ -863,7 +863,7 @@ public class CDocumentProvider extends TextFileDocumentProvider {
|
|||
}
|
||||
};
|
||||
}
|
||||
return super.createSaveOperation(element, document, overwrite);
|
||||
return null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue