forked from qt-creator/qt-creator
Add "delayedInitialize" feature to plugin manager.
And use it for some of the plugins. It avoids the plugins to do the timing on their own, and actually adds guarantees about the order the delayed initialization is done. Change-Id: I88ad9b46b24b82c91509774170fe0e7e99e88e4b Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
This commit is contained in:
@@ -31,13 +31,14 @@
|
||||
**************************************************************************/
|
||||
|
||||
#include "coreplugin.h"
|
||||
#include "designmode.h"
|
||||
#include "editmode.h"
|
||||
#include "editormanager.h"
|
||||
#include "mainwindow.h"
|
||||
#include "modemanager.h"
|
||||
#include "fileiconprovider.h"
|
||||
#include "designmode.h"
|
||||
#include "helpmanager.h"
|
||||
#include "mainwindow.h"
|
||||
#include "mimedatabase.h"
|
||||
#include "modemanager.h"
|
||||
|
||||
#include <extensionsystem/pluginmanager.h>
|
||||
|
||||
@@ -105,6 +106,12 @@ void CorePlugin::extensionsInitialized()
|
||||
m_mainWindow->extensionsInitialized();
|
||||
}
|
||||
|
||||
bool CorePlugin::delayedInitialize()
|
||||
{
|
||||
HelpManager::instance()->setupHelpManager();
|
||||
return true;
|
||||
}
|
||||
|
||||
void CorePlugin::remoteCommand(const QStringList & /* options */, const QStringList &args)
|
||||
{
|
||||
m_mainWindow->openFiles(args, ICore::SwitchMode);
|
||||
|
Reference in New Issue
Block a user