aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/cvs/cvsplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <[email protected]>2012-02-14 16:43:51 +0100
committerEike Ziller <[email protected]>2012-02-20 13:32:49 +0100
commitd66acb51d0c8b511df9f679806cbd3d84cce41ef (patch)
tree58289c9e7f7bc6107b4d620fad791a206d097555 /src/plugins/cvs/cvsplugin.cpp
parent266da3568d2db185f67227d38e29cd20d28fb2bd (diff)
Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King <[email protected]> Reviewed-by: Eike Ziller <[email protected]>
Diffstat (limited to 'src/plugins/cvs/cvsplugin.cpp')
-rw-r--r--src/plugins/cvs/cvsplugin.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/plugins/cvs/cvsplugin.cpp b/src/plugins/cvs/cvsplugin.cpp
index 9ad8bccfa90..46f3209f775 100644
--- a/src/plugins/cvs/cvsplugin.cpp
+++ b/src/plugins/cvs/cvsplugin.cpp
@@ -50,7 +50,7 @@
#include <coreplugin/icore.h>
#include <coreplugin/coreconstants.h>
-#include <coreplugin/filemanager.h>
+#include <coreplugin/documentmanager.h>
#include <coreplugin/messagemanager.h>
#include <coreplugin/mimedatabase.h>
#include <coreplugin/actionmanager/actionmanager.h>
@@ -469,14 +469,14 @@ bool CvsPlugin::submitEditorAboutToClose(VcsBaseSubmitEditor *submitEditor)
if (!isCommitEditorOpen())
return true;
- IFile *fileIFace = submitEditor->file();
+ IDocument *editorDocument = submitEditor->document();
const CvsSubmitEditor *editor = qobject_cast<CvsSubmitEditor *>(submitEditor);
- if (!fileIFace || !editor)
+ if (!editorDocument || !editor)
return true;
// Submit editor closing. Make it write out the commit message
// and retrieve files
- const QFileInfo editorFile(fileIFace->fileName());
+ const QFileInfo editorFile(editorDocument->fileName());
const QFileInfo changeFile(m_commitMessageFileName);
if (editorFile.absoluteFilePath() != changeFile.absoluteFilePath())
return true; // Oops?!
@@ -504,7 +504,7 @@ bool CvsPlugin::submitEditorAboutToClose(VcsBaseSubmitEditor *submitEditor)
bool closeEditor = true;
if (!fileList.empty()) {
// get message & commit
- closeEditor = FileManager::saveFile(fileIFace);
+ closeEditor = DocumentManager::saveDocument(editorDocument);
if (closeEditor)
closeEditor = commit(m_commitMessageFileName, fileList);
}