Commit 5b132339 authored by Thorbjørn Lindeijer's avatar Thorbjørn Lindeijer
Browse files

Rely on lazy instantiation of text editor actions

The actions are already lazily instantiated in
TextEditorActionHandler::setupActions(), so there should be no need to
call initializeActions() in all plugins on startup. Only the main text
editor plugin will still initialize its actions, to make sure the menu
items are there.
parent 5cc007e9
......@@ -225,7 +225,6 @@ void CppPlugin::writeSettings()
void CppPlugin::extensionsInitialized()
{
m_actionHandler->initializeActions();
}
void CppPlugin::shutdown()
......
......@@ -131,7 +131,6 @@ bool DuiEditorPlugin::initialize(const QStringList & /*arguments*/, QString *err
void DuiEditorPlugin::extensionsInitialized()
{
m_actionHandler->initializeActions();
}
void DuiEditorPlugin::initializeEditor(DuiEditor::Internal::ScriptEditor *editor)
......
......@@ -85,8 +85,3 @@ QStringList ProFileEditorFactory::mimeTypes() const
{
return m_mimeTypes;
}
void ProFileEditorFactory::initializeActions()
{
m_actionHandler->initializeActions();
}
......@@ -63,8 +63,6 @@ public:
inline Qt4Manager *qt4ProjectManager() const { return m_manager; }
void initializeActions();
private:
const QString m_kind;
const QStringList m_mimeTypes;
......
......@@ -185,7 +185,6 @@ bool Qt4ProjectManagerPlugin::initialize(const QStringList &arguments, QString *
void Qt4ProjectManagerPlugin::extensionsInitialized()
{
m_qt4ProjectManager->init();
m_proFileEditorFactory->initializeActions();
}
void Qt4ProjectManagerPlugin::updateContextMenu(Project *project,
......
......@@ -128,7 +128,6 @@ bool QtScriptEditorPlugin::initialize(const QStringList & /*arguments*/, QString
void QtScriptEditorPlugin::extensionsInitialized()
{
m_actionHandler->initializeActions();
}
void QtScriptEditorPlugin::initializeEditor(QtScriptEditor::Internal::ScriptEditor *editor)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment