EditorManager: Make closeEditor public

And use it where appropriate

Change-Id: I0f37b8aada6eaa9be6743724b91a59173a01cb0c
Reviewed-by: hjk <hjk121@nokiamail.com>
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
Orgad Shaneh
2013-08-06 21:35:06 +03:00
committed by Orgad Shaneh
parent 5a02089e3c
commit 0b4300a68c
10 changed files with 15 additions and 25 deletions

View File

@@ -540,8 +540,7 @@ void CppToolsPlugin::test_modelmanager_gc_if_last_cppeditor_closed()
QVERIFY(mm->snapshot().contains(file));
// Close file/editor
const QList<Core::IEditor*> editorsToClose = QList<Core::IEditor*>() << editor;
em->closeEditors(editorsToClose, /*askAboutModifiedEditors=*/ false);
em->closeEditor(editor, /*askAboutModifiedEditors=*/ false);
// Check: File is removed from the snapshpt
QVERIFY(!mm->workingCopy().contains(file));