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

@@ -1865,13 +1865,10 @@ void FakeVimPluginPrivate::handleDelayedQuit(bool forced, IEditor *editor)
// This tries to simulate vim behaviour. But the models of vim and
// Qt Creator core do not match well...
EditorManager *editorManager = ICore::editorManager();
if (editorManager->hasSplitter()) {
if (editorManager->hasSplitter())
triggerAction(Core::Constants::REMOVE_CURRENT_SPLIT);
} else {
QList<IEditor *> editors;
editors.append(editor);
editorManager->closeEditors(editors, !forced);
}
else
editorManager->closeEditor(editor, !forced);
}
void FakeVimPluginPrivate::handleDelayedQuitAll(bool forced)