aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/texteditor/texteditorplugin.cpp
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@digia.com>2013-12-10 15:54:20 +0100
committerEike Ziller <eike.ziller@digia.com>2013-12-12 09:59:27 +0100
commit3d1b70c58e0d2eea47572ec4a018a18674508f9b (patch)
tree2217255fb7d6bc8e3e30603bb985cb655ab7be7d /src/plugins/texteditor/texteditorplugin.cpp
parent3ee9fb4d1c74058c785f24d19bac5fe879c75109 (diff)
Remove the need to register editors in the action handler
The action handler already knows which editors to handle through the context. It only needs to receive signals for updating the actions from the current editor. So there is no need to tell the action handler about every individual editor. This also removes some noise from the text editor implementations. Change-Id: I76dc5b1559cc8cf54ff313e6cdba4e789a3108aa Reviewed-by: David Schulz <david.schulz@digia.com>
Diffstat (limited to 'src/plugins/texteditor/texteditorplugin.cpp')
-rw-r--r--src/plugins/texteditor/texteditorplugin.cpp13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/plugins/texteditor/texteditorplugin.cpp b/src/plugins/texteditor/texteditorplugin.cpp
index a61e82f02a..2721eac7c3 100644
--- a/src/plugins/texteditor/texteditorplugin.cpp
+++ b/src/plugins/texteditor/texteditorplugin.cpp
@@ -203,11 +203,6 @@ bool TextEditorPlugin::initialize(const QStringList &arguments, QString *errorMe
m_outlineFactory = new OutlineFactory;
addAutoReleasedObject(m_outlineFactory);
- // We have to initialize the actions because other plugins that
- // depend upon the texteditorplugin expect that actions will be
- // registered in the action manager at plugin initialization time.
- m_editorFactory->actionHandler()->initializeActions();
-
m_baseTextMarkRegistry = new BaseTextMarkRegistry(this);
return true;
@@ -246,14 +241,6 @@ void TextEditorPlugin::extensionsInitialized()
this, SLOT(updateCurrentSelection(QString)));
}
-void TextEditorPlugin::initializeEditor(PlainTextEditorWidget *editor)
-{
- // common actions
- m_editorFactory->actionHandler()->setupActions(editor);
-
- TextEditorSettings::initializeEditor(editor);
-}
-
void TextEditorPlugin::invokeCompletion()
{
Core::IEditor *iface = Core::EditorManager::currentEditor();