Session: Move all functionality related to Nodes into ProjectTree

Do no longer expose Nodes from the SessionManager's API. These are now
exclusively handled by the ProjectTree.

Change-Id: I585c2ac919462073870363436e767640775d9045
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Tobias Hunger
2017-12-04 13:53:38 +01:00
parent 34b8ed1484
commit 7c35a38100
16 changed files with 78 additions and 83 deletions

View File

@@ -75,13 +75,13 @@ namespace Internal {
static Node *currentEditorNode()
{
Core::IDocument *doc = Core::EditorManager::currentDocument();
return doc ? SessionManager::nodeForFile(doc->filePath()) : 0;
return doc ? ProjectTree::nodeForFile(doc->filePath()) : nullptr;
}
static QbsProject *currentEditorProject()
{
Core::IDocument *doc = Core::EditorManager::currentDocument();
return doc ? qobject_cast<QbsProject *>(SessionManager::projectForFile(doc->filePath())) : 0;
return doc ? qobject_cast<QbsProject *>(SessionManager::projectForFile(doc->filePath())) : nullptr;
}
bool QbsProjectManagerPlugin::initialize(const QStringList &arguments, QString *errorMessage)