forked from qt-creator/qt-creator
Rename IFile->IDocument and FileManager->DocumentManager
And adapt the other API respectively. Change-Id: I1e04e555409be09242db6890f9e013396f83aeed Reviewed-by: Bill King <bill.king@nokia.com> Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
This commit is contained in:
@@ -209,7 +209,7 @@ ModelManagerInterface::WorkingCopy ModelManager::workingCopy() const
|
||||
return workingCopy;
|
||||
|
||||
foreach (Core::IEditor *editor, Core::ICore::editorManager()->openedEditors()) {
|
||||
const QString key = editor->file()->fileName();
|
||||
const QString key = editor->document()->fileName();
|
||||
|
||||
if (TextEditor::ITextEditor *textEditor = qobject_cast<TextEditor::ITextEditor*>(editor)) {
|
||||
if (textEditor->context().contains(ProjectExplorer::Constants::LANG_QMLJS)) {
|
||||
|
||||
@@ -84,7 +84,7 @@ bool QmlJSToolsPlugin::initialize(const QStringList &arguments, QString *error)
|
||||
// Objects
|
||||
m_modelManager = new ModelManager(this);
|
||||
// Core::VCSManager *vcsManager = core->vcsManager();
|
||||
// Core::FileManager *fileManager = core->fileManager();
|
||||
// Core::DocumentManager *fileManager = core->fileManager();
|
||||
// connect(vcsManager, SIGNAL(repositoryChanged(QString)),
|
||||
// m_modelManager, SLOT(updateModifiedSourceFiles()));
|
||||
// connect(fileManager, SIGNAL(filesChangedInternally(QStringList)),
|
||||
|
||||
Reference in New Issue
Block a user