Commit a2b2857b authored by Nikolai Kosjar's avatar Nikolai Kosjar Committed by Erik Verbruggen

CppEditor: Rename CppPlugin to CppEditorPlugin

Change-Id: Icebf85ae425f413ed0d3dfc873869665233ec58c
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@digia.com>
Reviewed-by: default avatarErik Verbruggen <erik.verbruggen@digia.com>
parent e3ecf423
......@@ -28,8 +28,12 @@
****************************************************************************/
#include "cppeditor.h"
#include "cppplugin.h"
#include <coreplugin/editormanager/editormanager.h>
#include <cplusplus/CppDocument.h>
#include <cppeditor/cppeditor.h>
#include <cppeditor/cppeditorplugin.h>
#include <cpptools/cppmodelmanagerinterface.h>
#include <utils/fileutils.h>
#include <QCoreApplication>
......@@ -136,7 +140,7 @@ void TestCase::run(const QByteArray &expected, int undoCount)
}
} // anonymous namespace
void CppPlugin::test_doxygen_comments_qt_style()
void CppEditorPlugin::test_doxygen_comments_qt_style()
{
const QByteArray given =
"bool preventFolding;\n"
......@@ -155,7 +159,7 @@ void CppPlugin::test_doxygen_comments_qt_style()
data.run(expected);
}
void CppPlugin::test_doxygen_comments_qt_style_continuation()
void CppEditorPlugin::test_doxygen_comments_qt_style_continuation()
{
const QByteArray given =
"bool preventFolding;\n"
......@@ -177,7 +181,7 @@ void CppPlugin::test_doxygen_comments_qt_style_continuation()
data.run(expected);
}
void CppPlugin::test_doxygen_comments_java_style()
void CppEditorPlugin::test_doxygen_comments_java_style()
{
const QByteArray given =
"bool preventFolding;\n"
......@@ -196,7 +200,7 @@ void CppPlugin::test_doxygen_comments_java_style()
data.run(expected);
}
void CppPlugin::test_doxygen_comments_java_style_continuation()
void CppEditorPlugin::test_doxygen_comments_java_style_continuation()
{
const QByteArray given =
"bool preventFolding;\n"
......@@ -218,7 +222,7 @@ void CppPlugin::test_doxygen_comments_java_style_continuation()
data.run(expected);
}
void CppPlugin::test_doxygen_comments_cpp_styleA()
void CppEditorPlugin::test_doxygen_comments_cpp_styleA()
{
const QByteArray given =
"bool preventFolding;\n"
......@@ -237,7 +241,7 @@ void CppPlugin::test_doxygen_comments_cpp_styleA()
data.run(expected);
}
void CppPlugin::test_doxygen_comments_cpp_styleB()
void CppEditorPlugin::test_doxygen_comments_cpp_styleB()
{
const QByteArray given =
"bool preventFolding;\n"
......@@ -256,7 +260,7 @@ void CppPlugin::test_doxygen_comments_cpp_styleB()
data.run(expected);
}
void CppPlugin::test_doxygen_comments_cpp_styleA_continuation()
void CppEditorPlugin::test_doxygen_comments_cpp_styleA_continuation()
{
const QByteArray given =
"bool preventFolding;\n"
......@@ -279,7 +283,7 @@ void CppPlugin::test_doxygen_comments_cpp_styleA_continuation()
}
/// test cpp style doxygen comment when inside a indented scope
void CppPlugin::test_doxygen_comments_cpp_styleA_indented()
void CppEditorPlugin::test_doxygen_comments_cpp_styleA_indented()
{
const QByteArray given =
" bool preventFolding;\n"
......@@ -299,7 +303,7 @@ void CppPlugin::test_doxygen_comments_cpp_styleA_indented()
}
/// test cpp style doxygen comment continuation when inside a indented scope
void CppPlugin::test_doxygen_comments_cpp_styleA_indented_continuation()
void CppEditorPlugin::test_doxygen_comments_cpp_styleA_indented_continuation()
{
const QByteArray given =
" bool preventFolding;\n"
......@@ -321,7 +325,7 @@ void CppPlugin::test_doxygen_comments_cpp_styleA_indented_continuation()
data.run(expected);
}
void CppPlugin::test_doxygen_comments_cpp_styleA_corner_case()
void CppEditorPlugin::test_doxygen_comments_cpp_styleA_corner_case()
{
const QByteArray given =
"bool preventFolding;\n"
......
......@@ -30,7 +30,7 @@
#include "cppeditor.h"
#include "cppeditorconstants.h"
#include "cppplugin.h"
#include "cppeditorplugin.h"
#include "cpphighlighter.h"
#include "cppautocompleter.h"
#include "cppquickfixassistant.h"
......@@ -659,7 +659,7 @@ void CPPEditorWidget::createToolBar(CPPEditor *editor)
m_outlineModel = new OverviewModel(this);
m_proxyModel = new OverviewProxyModel(m_outlineModel, this);
if (CppPlugin::instance()->sortedOutline())
if (CppEditorPlugin::instance()->sortedOutline())
m_proxyModel->sort(0, Qt::AscendingOrder);
else
m_proxyModel->sort(-1, Qt::AscendingOrder); // don't sort yet, but set column for sortedOutline()
......@@ -671,7 +671,8 @@ void CPPEditorWidget::createToolBar(CPPEditor *editor)
m_sortAction = new QAction(tr("Sort Alphabetically"), m_outlineCombo);
m_sortAction->setCheckable(true);
m_sortAction->setChecked(sortedOutline());
connect(m_sortAction, SIGNAL(toggled(bool)), CppPlugin::instance(), SLOT(setSortedOutline(bool)));
connect(m_sortAction, SIGNAL(toggled(bool)),
CppEditorPlugin::instance(), SLOT(setSortedOutline(bool)));
m_outlineCombo->addAction(m_sortAction);
m_updateOutlineTimer = new QTimer(this);
......@@ -1787,7 +1788,7 @@ void CPPEditorWidget::contextMenuEvent(QContextMenuEvent *e)
createAssistInterface(TextEditor::QuickFix, TextEditor::ExplicitlyInvoked);
if (interface) {
QScopedPointer<TextEditor::IAssistProcessor> processor(
CppPlugin::instance()->quickFixProvider()->createProcessor());
CppEditorPlugin::instance()->quickFixProvider()->createProcessor());
QScopedPointer<TextEditor::IAssistProposal> proposal(processor->perform(interface));
if (!proposal.isNull()) {
TextEditor::BasicProposalItemListModel *model =
......@@ -1911,7 +1912,7 @@ Core::IEditor *CPPEditor::duplicate(QWidget *parent)
{
CPPEditorWidget *newEditor = new CPPEditorWidget(parent);
newEditor->duplicateFrom(editorWidget());
CppPlugin::instance()->initializeEditor(newEditor);
CppEditorPlugin::instance()->initializeEditor(newEditor);
return newEditor->editor();
}
......
DEFINES += CPPEDITOR_LIBRARY
include(../../qtcreatorplugin.pri)
HEADERS += cppplugin.h \
cppeditor.h \
cpphighlighter.h \
cpphoverhandler.h \
cppfilewizard.h \
HEADERS += cppeditorplugin.h \
cppautocompleter.h \
cppclasswizard.h \
cppeditorconstants.h \
cppeditorenums.h \
cppeditor_global.h \
cppclasswizard.h \
cppoutline.h \
cpptypehierarchy.h \
cppeditor.h \
cppelementevaluator.h \
cppautocompleter.h \
cppsnippetprovider.h \
cppfilewizard.h \
cppfunctiondecldeflink.h \
cpphighlighter.h \
cpphoverhandler.h \
cppoutline.h \
cppquickfixassistant.h \
cppquickfix.h \
cppquickfixes.h \
cppfunctiondecldeflink.h
cppquickfix.h \
cppsnippetprovider.h \
cpptypehierarchy.h
SOURCES += cppplugin.cpp \
SOURCES += cppeditorplugin.cpp \
cppautocompleter.cpp \
cppclasswizard.cpp \
cppeditor.cpp \
cppelementevaluator.cpp \
cppfilewizard.cpp \
cppfunctiondecldeflink.cpp \
cpphighlighter.cpp \
cpphoverhandler.cpp \
cppfilewizard.cpp \
cppclasswizard.cpp \
cppquickfixes.cpp \
cppoutline.cpp \
cpptypehierarchy.cpp \
cppelementevaluator.cpp \
cppautocompleter.cpp \
cppsnippetprovider.cpp \
cppquickfixassistant.cpp \
cppquickfix.cpp \
cppfunctiondecldeflink.cpp
cppquickfixes.cpp \
cppsnippetprovider.cpp \
cpptypehierarchy.cpp
RESOURCES += cppeditor.qrc
OTHER_FILES += CppEditor.mimetypes.xml
......
......@@ -23,12 +23,14 @@ QtcPlugin {
"cppautocompleter.h",
"cppclasswizard.cpp",
"cppclasswizard.h",
"cppeditorconstants.h",
"cppeditor.cpp",
"cppeditorenums.h",
"cppeditor_global.h",
"cppeditor.h",
"cppeditorplugin.cpp",
"cppeditorplugin.h",
"cppeditor.qrc",
"cppeditor_global.h",
"cppeditorconstants.h",
"cppeditorenums.h",
"cppelementevaluator.cpp",
"cppelementevaluator.h",
"cppfilewizard.cpp",
......@@ -41,14 +43,12 @@ QtcPlugin {
"cpphoverhandler.h",
"cppoutline.cpp",
"cppoutline.h",
"cppplugin.cpp",
"cppplugin.h",
"cppquickfix.cpp",
"cppquickfix.h",
"cppquickfixassistant.cpp",
"cppquickfixassistant.h",
"cppquickfix.cpp",
"cppquickfixes.cpp",
"cppquickfixes.h",
"cppquickfix.h",
"cppsnippetprovider.cpp",
"cppsnippetprovider.h",
"cpptypehierarchy.cpp",
......@@ -58,9 +58,9 @@ QtcPlugin {
Group {
condition: Defaults.testsEnabled(qbs)
files: [
"cppquickfix_test.cpp",
"cppdoxygen_test.cpp",
"fileandtokenactions_test.cpp"
"cppquickfix_test.cpp",
"fileandtokenactions_test.cpp",
]
cpp.defines: outer.concat(['SRCDIR="' + FileInfo.path(filePath) + '"'])
......
......@@ -34,8 +34,8 @@ namespace CppEditor {
namespace Constants {
const char M_CONTEXT[] = "CppEditor.ContextMenu";
const char C_CPPEDITOR[] = "CppPlugin.C++Editor";
const char CPPEDITOR_ID[] = "CppPlugin.C++Editor";
const char C_CPPEDITOR[] = "CppEditor.C++Editor";
const char CPPEDITOR_ID[] = "CppEditor.C++Editor";
const char CPPEDITOR_DISPLAY_NAME[] = QT_TRANSLATE_NOOP("OpenWith::Editors", "C++ Editor");
const char SWITCH_DECLARATION_DEFINITION[] = "CppEditor.SwitchDeclarationDefinition";
const char OPEN_DECLARATION_DEFINITION_IN_NEXT_SPLIT[] = "CppEditor.OpenDeclarationDefinitionInNextSplit";
......
......@@ -27,7 +27,7 @@
**
****************************************************************************/
#include "cppplugin.h"
#include "cppeditorplugin.h"
#include "cppclasswizard.h"
#include "cppeditor.h"
......@@ -65,7 +65,7 @@ enum { QUICKFIX_INTERVAL = 20 };
//////////////////////////// CppEditorFactory /////////////////////////////
CppEditorFactory::CppEditorFactory(CppPlugin *owner) :
CppEditorFactory::CppEditorFactory(CppEditorPlugin *owner) :
m_owner(owner)
{
m_mimeTypes << QLatin1String(CppEditor::Constants::C_SOURCE_MIMETYPE)
......@@ -108,11 +108,11 @@ QStringList CppEditorFactory::mimeTypes() const
return m_mimeTypes;
}
///////////////////////////////// CppPlugin //////////////////////////////////
///////////////////////////////// CppEditorPlugin //////////////////////////////////
CppPlugin *CppPlugin::m_instance = 0;
CppEditorPlugin *CppEditorPlugin::m_instance = 0;
CppPlugin::CppPlugin() :
CppEditorPlugin::CppEditorPlugin() :
m_actionHandler(0),
m_sortedOutline(false),
m_renameSymbolUnderCursorAction(0),
......@@ -124,18 +124,18 @@ CppPlugin::CppPlugin() :
m_instance = this;
}
CppPlugin::~CppPlugin()
CppEditorPlugin::~CppEditorPlugin()
{
delete m_actionHandler;
m_instance = 0;
}
CppPlugin *CppPlugin::instance()
CppEditorPlugin *CppEditorPlugin::instance()
{
return m_instance;
}
void CppPlugin::initializeEditor(CPPEditorWidget *editor)
void CppEditorPlugin::initializeEditor(CPPEditorWidget *editor)
{
m_actionHandler->setupActions(editor);
......@@ -147,23 +147,23 @@ void CppPlugin::initializeEditor(CPPEditorWidget *editor)
editor, SLOT(setSortedOutline(bool)));
}
void CppPlugin::setSortedOutline(bool sorted)
void CppEditorPlugin::setSortedOutline(bool sorted)
{
m_sortedOutline = sorted;
emit outlineSortingChanged(sorted);
}
bool CppPlugin::sortedOutline() const
bool CppEditorPlugin::sortedOutline() const
{
return m_sortedOutline;
}
CppQuickFixAssistProvider *CppPlugin::quickFixProvider() const
CppQuickFixAssistProvider *CppEditorPlugin::quickFixProvider() const
{
return m_quickFixProvider;
}
bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMessage)
bool CppEditorPlugin::initialize(const QStringList & /*arguments*/, QString *errorMessage)
{
if (!Core::ICore::mimeDatabase()->addMimeTypes(QLatin1String(":/cppeditor/CppEditor.mimetypes.xml"), errorMessage))
return false;
......@@ -301,55 +301,55 @@ bool CppPlugin::initialize(const QStringList & /*arguments*/, QString *errorMess
return true;
}
void CppPlugin::readSettings()
void CppEditorPlugin::readSettings()
{
m_sortedOutline = Core::ICore::settings()->value(QLatin1String("CppTools/SortedMethodOverview"), false).toBool();
}
void CppPlugin::writeSettings()
void CppEditorPlugin::writeSettings()
{
Core::ICore::settings()->setValue(QLatin1String("CppTools/SortedMethodOverview"), m_sortedOutline);
}
void CppPlugin::extensionsInitialized()
void CppEditorPlugin::extensionsInitialized()
{
}
ExtensionSystem::IPlugin::ShutdownFlag CppPlugin::aboutToShutdown()
ExtensionSystem::IPlugin::ShutdownFlag CppEditorPlugin::aboutToShutdown()
{
writeSettings();
return SynchronousShutdown;
}
void CppPlugin::switchDeclarationDefinition()
void CppEditorPlugin::switchDeclarationDefinition()
{
CPPEditorWidget *editor = qobject_cast<CPPEditorWidget*>(Core::EditorManager::currentEditor()->widget());
if (editor)
editor->switchDeclarationDefinition(/*inNextSplit*/ false);
}
void CppPlugin::openDeclarationDefinitionInNextSplit()
void CppEditorPlugin::openDeclarationDefinitionInNextSplit()
{
CPPEditorWidget *editor = qobject_cast<CPPEditorWidget*>(Core::EditorManager::currentEditor()->widget());
if (editor)
editor->switchDeclarationDefinition(/*inNextSplit*/ true);
}
void CppPlugin::renameSymbolUnderCursor()
void CppEditorPlugin::renameSymbolUnderCursor()
{
CPPEditorWidget *editor = qobject_cast<CPPEditorWidget*>(Core::EditorManager::currentEditor()->widget());
if (editor)
editor->renameSymbolUnderCursor();
}
void CppPlugin::findUsages()
void CppEditorPlugin::findUsages()
{
CPPEditorWidget *editor = qobject_cast<CPPEditorWidget*>(Core::EditorManager::currentEditor()->widget());
if (editor)
editor->findUsages();
}
void CppPlugin::onTaskStarted(const QString &type)
void CppEditorPlugin::onTaskStarted(const QString &type)
{
if (type == QLatin1String(CppTools::Constants::TASK_INDEX)) {
m_renameSymbolUnderCursorAction->setEnabled(false);
......@@ -359,7 +359,7 @@ void CppPlugin::onTaskStarted(const QString &type)
}
}
void CppPlugin::onAllTasksFinished(const QString &type)
void CppEditorPlugin::onAllTasksFinished(const QString &type)
{
if (type == QLatin1String(CppTools::Constants::TASK_INDEX)) {
m_renameSymbolUnderCursorAction->setEnabled(true);
......@@ -369,7 +369,7 @@ void CppPlugin::onAllTasksFinished(const QString &type)
}
}
void CppPlugin::currentEditorChanged(Core::IEditor *editor)
void CppEditorPlugin::currentEditorChanged(Core::IEditor *editor)
{
if (! editor)
return;
......@@ -379,7 +379,7 @@ void CppPlugin::currentEditorChanged(Core::IEditor *editor)
}
}
void CppPlugin::openTypeHierarchy()
void CppEditorPlugin::openTypeHierarchy()
{
CPPEditorWidget *editor = qobject_cast<CPPEditorWidget*>(Core::EditorManager::currentEditor()->widget());
if (editor) {
......@@ -389,4 +389,4 @@ void CppPlugin::openTypeHierarchy()
}
}
Q_EXPORT_PLUGIN(CppPlugin)
Q_EXPORT_PLUGIN(CppEditorPlugin)
......@@ -27,8 +27,8 @@
**
****************************************************************************/
#ifndef CPPPLUGIN_H
#define CPPPLUGIN_H
#ifndef CPPEDITORPLUGIN_H
#define CPPEDITORPLUGIN_H
#include <coreplugin/editormanager/ieditorfactory.h>
......@@ -50,16 +50,16 @@ class CPPEditorWidget;
class CppQuickFixCollector;
class CppQuickFixAssistProvider;
class CppPlugin : public ExtensionSystem::IPlugin
class CppEditorPlugin : public ExtensionSystem::IPlugin
{
Q_OBJECT
Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QtCreatorPlugin" FILE "CppEditor.json")
public:
CppPlugin();
~CppPlugin();
CppEditorPlugin();
~CppEditorPlugin();
static CppPlugin *instance();
static CppEditorPlugin *instance();
bool initialize(const QStringList &arguments, QString *errorMessage = 0);
void extensionsInitialized();
......@@ -170,7 +170,7 @@ private:
void writeSettings();
void readSettings();
static CppPlugin *m_instance;
static CppEditorPlugin *m_instance;
TextEditor::TextEditorActionHandler *m_actionHandler;
bool m_sortedOutline;
......@@ -189,7 +189,7 @@ class CppEditorFactory : public Core::IEditorFactory
Q_OBJECT
public:
CppEditorFactory(CppPlugin *owner);
CppEditorFactory(CppEditorPlugin *owner);
// IEditorFactory
QStringList mimeTypes() const;
......@@ -198,11 +198,11 @@ public:
QString displayName() const;
private:
CppPlugin *m_owner;
CppEditorPlugin *m_owner;
QStringList m_mimeTypes;
};
} // namespace Internal
} // namespace CppEditor
#endif // CPPPLUGIN_H
#endif // CPPEDITORPLUGIN_H
This diff is collapsed.
......@@ -32,7 +32,7 @@
#include "cppeditorconstants.h"
#include "cppeditor.h"
#include "cppelementevaluator.h"
#include "cppplugin.h"
#include "cppeditorplugin.h"
#include <utils/navigationtreeview.h>
#include <utils/annotateditemdelegate.h>
......@@ -144,7 +144,7 @@ CppTypeHierarchyWidget::CppTypeHierarchyWidget(Core::IEditor *editor) :
layout->addWidget(m_treeView);
connect(m_treeView, SIGNAL(clicked(QModelIndex)), this, SLOT(onItemClicked(QModelIndex)));
connect(CppPlugin::instance(), SIGNAL(typeHierarchyRequested()), this, SLOT(perform()));
connect(CppEditorPlugin::instance(), SIGNAL(typeHierarchyRequested()), this, SLOT(perform()));
} else {
QLabel *label = new QLabel(tr("No type hierarchy available"), this);
label->setAlignment(Qt::AlignCenter);
......
......@@ -32,7 +32,7 @@
#include <coreplugin/editormanager/editormanager.h>
#include <cppeditor/cppeditor.h>
#include <cppeditor/cppplugin.h>
#include <cppeditor/cppeditorplugin.h>
#include <cppeditor/cppquickfixassistant.h>
#include <cppeditor/cppquickfix.h>
#include <cpptools/cpptoolsplugin.h>
......@@ -367,7 +367,7 @@ void SwitchDeclarationDefinitionTokenAction::run(CPPEditorWidget *)
IEditor *editorBefore = em->currentEditor();
const int originalLine = editorBefore->currentLine();
const int originalColumn = editorBefore->currentColumn();
CppEditor::Internal::CppPlugin::instance()->switchDeclarationDefinition();
CppEditor::Internal::CppEditorPlugin::instance()->switchDeclarationDefinition();
QApplication::processEvents();
// Go back
......@@ -388,7 +388,7 @@ public:
void FindUsagesTokenAction::run(CPPEditorWidget *)
{
CppEditor::Internal::CppPlugin::instance()->findUsages();
CppEditor::Internal::CppEditorPlugin::instance()->findUsages();
QApplication::processEvents();
}
......@@ -401,7 +401,7 @@ public:
void RenameSymbolUnderCursorTokenAction::run(CPPEditorWidget *)
{
CppEditor::Internal::CppPlugin::instance()->renameSymbolUnderCursor();
CppEditor::Internal::CppEditorPlugin::instance()->renameSymbolUnderCursor();
QApplication::processEvents();
}
......@@ -414,7 +414,7 @@ public:
void OpenTypeHierarchyTokenAction::run(CPPEditorWidget *)
{
CppEditor::Internal::CppPlugin::instance()->openTypeHierarchy();
CppEditor::Internal::CppEditorPlugin::instance()->openTypeHierarchy();
QApplication::processEvents();
}
......@@ -504,13 +504,13 @@ void SwitchHeaderSourceFileAction::run(CPPEditorWidget *)
} // anonymous namespace
void CppPlugin::test_openEachFile()
void CppEditorPlugin::test_openEachFile()
{
TestActionsTestCase test;
test.run();
}
void CppPlugin::test_switchHeaderSourceOnEachFile()
void CppEditorPlugin::test_switchHeaderSourceOnEachFile()
{
Actions fileActions;
fileActions << ActionPointer(new SwitchHeaderSourceFileAction);
......@@ -519,7 +519,7 @@ void CppPlugin::test_switchHeaderSourceOnEachFile()
test.run(Actions(), fileActions);
}
void CppPlugin::test_moveTokenWiseThroughEveryFile()
void CppEditorPlugin::test_moveTokenWiseThroughEveryFile()
{
Actions tokenActions;
tokenActions << ActionPointer(new NoOpTokenAction());
......@@ -529,7 +529,7 @@ void CppPlugin::test_moveTokenWiseThroughEveryFile()
}
/// May block if file does not exists (e.g. a not generated ui_* file).
void CppPlugin::test_moveTokenWiseThroughEveryFileAndFollowSymbol()
void CppEditorPlugin::test_moveTokenWiseThroughEveryFileAndFollowSymbol()
{
Actions tokenActions;
tokenActions << ActionPointer(new FollowSymbolUnderCursorTokenAction());
......@@ -538,7 +538,7 @@ void CppPlugin::test_moveTokenWiseThroughEveryFileAndFollowSymbol()
test.run(tokenActions);
}
void CppPlugin::test_moveTokenWiseThroughEveryFileAndSwitchDeclarationDefinition()
void CppEditorPlugin::test_moveTokenWiseThroughEveryFileAndSwitchDeclarationDefinition()
{
Actions tokenActions;
tokenActions << ActionPointer(new SwitchDeclarationDefinitionTokenAction());
......@@ -547,7 +547,7 @@ void CppPlugin::test_moveTokenWiseThroughEveryFileAndSwitchDeclarationDefinition
test.run(tokenActions);
}
void CppPlugin::test_moveTokenWiseThroughEveryFileAndFindUsages()
void CppEditorPlugin::test_moveTokenWiseThroughEveryFileAndFindUsages()
{
Actions tokenActions;
tokenActions << ActionPointer(new FindUsagesTokenAction());
......@@ -556,7 +556,7 @@ void CppPlugin::test_moveTokenWiseThroughEveryFileAndFindUsages()
test.run(tokenActions);
}
void CppPlugin::test_moveTokenWiseThroughEveryFileAndRenameUsages()
void CppEditorPlugin::test_moveTokenWiseThroughEveryFileAndRenameUsages()
{
Actions tokenActions;
tokenActions << ActionPointer(new RenameSymbolUnderCursorTokenAction());
......@@ -565,7 +565,7 @@ void CppPlugin::test_moveTokenWiseThroughEveryFileAndRenameUsages()
test.run(tokenActions);
}
void CppPlugin::test_moveTokenWiseThroughEveryFileAndOpenTypeHierarchy()
void CppEditorPlugin::test_moveTokenWiseThroughEveryFileAndOpenTypeHierarchy()
{
Actions tokenActions;
tokenActions << ActionPointer(new OpenTypeHierarchyTokenAction());
......@@ -574,7 +574,7 @@ void CppPlugin::test_moveTokenWiseThroughEveryFileAndOpenTypeHierarchy()
test.run(tokenActions);
}
void CppPlugin::test_moveTokenWiseThroughEveryFileAndInvokeCompletion()
void CppEditorPlugin::test_moveTokenWiseThroughEveryFileAndInvokeCompletion()
{
Actions tokenActions;
tokenActions << ActionPointer(new InvokeCompletionTokenAction());
......@@ -583,7 +583,7 @@ void CppPlugin::test_moveTokenWiseThroughEveryFileAndInvokeCompletion()
test.run(tokenActions);
}
void CppPlugin::test_moveTokenWiseThroughEveryFileAndTriggerQuickFixes()
void CppEditorPlugin::test_moveTokenWiseThroughEveryFileAndTriggerQuickFixes()
{
Actions tokenActions;
tokenActions << ActionPointer(new RunAllQuickFixesTokenAction());
......
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