Ensure the user can stop a semantic search and added a method to get a pointer to the ModelManagerInterface.

This commit is contained in:
Roberto Raggi
2009-10-05 13:43:05 +02:00
parent 1395b87fc8
commit b5d6bf73d6
4 changed files with 23 additions and 0 deletions

View File

@@ -56,6 +56,8 @@
#include <coreplugin/editormanager/editormanager.h>
#include <coreplugin/progressmanager/progressmanager.h>
#include <extensionsystem/pluginmanager.h>
#include <utils/qtcassert.h>
#include <TranslationUnit.h>
@@ -588,6 +590,13 @@ Document::Ptr CppPreprocessor::switchDocument(Document::Ptr doc)
}
CppTools::CppModelManagerInterface *CppTools::CppModelManagerInterface::instance()
{
ExtensionSystem::PluginManager *pluginManager = ExtensionSystem::PluginManager::instance();
return pluginManager->getObject<CppTools::CppModelManagerInterface>();
}
/*!
\class CppTools::CppModelManager