MCPcopy Create free account
hub / github.com/KDE/kdevelop / KDevQmlJsPlugin

Method KDevQmlJsPlugin

plugins/qmljs/kdevqmljsplugin.cpp:54–68  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52ModelManager::~ModelManager() {}
53
54KDevQmlJsPlugin::KDevQmlJsPlugin(QObject* parent, const KPluginMetaData& metaData, const QVariantList&)
55 : IPlugin(QStringLiteral("kdevqmljssupport"), parent, metaData)
56 , ILanguageSupport()
57 , m_highlighting(new QmlJsHighlighting(this))
58 , m_refactoring(new BasicRefactoring(this))
59 , m_modelManager(new ModelManager(this))
60{
61 QmlJS::registerDUChainItems();
62
63 CodeCompletionModel* codeCompletion = new QmlJS::CodeCompletionModel(this);
64 new KDevelop::CodeCompletion(this, codeCompletion, name());
65
66 auto assistantsManager = core()->languageController()->staticAssistantsManager();
67 assistantsManager->registerAssistant(StaticAssistant::Ptr(new RenameAssistant(this)));
68}
69
70KDevQmlJsPlugin::~KDevQmlJsPlugin()
71{

Callers

nothing calls this directly

Calls 5

registerDUChainItemsFunction · 0.85
nameFunction · 0.85
languageControllerMethod · 0.80
registerAssistantMethod · 0.80

Tested by

no test coverage detected