| 52 | ModelManager::~ModelManager() {} |
| 53 | |
| 54 | KDevQmlJsPlugin::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 | |
| 70 | KDevQmlJsPlugin::~KDevQmlJsPlugin() |
| 71 | { |
nothing calls this directly
no test coverage detected