mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-08 16:55:38 +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()));
|
assertEquals("Edit failed", newtext, newContent.substring(0, newtext.length()));
|
||||||
// save
|
// save
|
||||||
fEditor.doSave(new NullProgressMonitor());
|
fEditor.doSave(new NullProgressMonitor());
|
||||||
|
assertFalse("Editor is still dirty", fEditor.isDirty());
|
||||||
// close and reopen
|
// close and reopen
|
||||||
EditorTestHelper.closeEditor(fEditor);
|
EditorTestHelper.closeEditor(fEditor);
|
||||||
setUpEditor(file);
|
setUpEditor(file);
|
||||||
|
@ -141,6 +142,7 @@ public class BasicCEditorTest extends BaseUITestCase {
|
||||||
assertEquals("Edit failed", newtext, newContent.substring(0, newtext.length()));
|
assertEquals("Edit failed", newtext, newContent.substring(0, newtext.length()));
|
||||||
// save
|
// save
|
||||||
fEditor.doSave(new NullProgressMonitor());
|
fEditor.doSave(new NullProgressMonitor());
|
||||||
|
assertFalse("Editor is still dirty", fEditor.isDirty());
|
||||||
// close and reopen
|
// close and reopen
|
||||||
EditorTestHelper.closeEditor(fEditor);
|
EditorTestHelper.closeEditor(fEditor);
|
||||||
setUpEditor(tmpFile);
|
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