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

Method ProblemReporterPlugin

plugins/problemreporter/problemreporterplugin.cpp:91–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89};
90
91ProblemReporterPlugin::ProblemReporterPlugin(QObject* parent, const KPluginMetaData& metaData, const QVariantList&)
92 : KDevelop::IPlugin(QStringLiteral("kdevproblemreporter"), parent, metaData)
93 , m_factory(new ProblemReporterFactory)
94 , m_model(new ProblemReporterModel(this))
95{
96 KDevelop::ProblemModelSet* pms = core()->languageController()->problemModelSet();
97 pms->addModel(QStringLiteral("Parser"), i18n("Parser"), m_model);
98 core()->uiController()->addToolView(i18nc("@title:window", "Problems"), m_factory);
99 setXMLFile(QStringLiteral("kdevproblemreporter.rc"));
100
101 connect(ICore::self()->documentController(), &IDocumentController::documentClosed, this,
102 &ProblemReporterPlugin::documentClosed);
103 connect(ICore::self()->documentController(), &IDocumentController::textDocumentCreated, this,
104 &ProblemReporterPlugin::textDocumentCreated);
105 connect(ICore::self()->documentController(), &IDocumentController::documentUrlChanged, this,
106 &ProblemReporterPlugin::documentUrlChanged);
107 connect(ICore::self()->documentController(), &IDocumentController::documentActivated, this,
108 &ProblemReporterPlugin::documentActivated);
109 connect(DUChain::self(), &DUChain::updateReady,
110 this, &ProblemReporterPlugin::updateReady);
111 connect(ICore::self()->languageController()->staticAssistantsManager(), &StaticAssistantsManager::problemsChanged,
112 this, &ProblemReporterPlugin::updateHighlight);
113 connect(pms, &ProblemModelSet::showRequested, this, &ProblemReporterPlugin::showModel);
114 connect(pms, &ProblemModelSet::problemsChanged, this, &ProblemReporterPlugin::updateOpenedDocumentsHighlight);
115}
116
117ProblemReporterPlugin::~ProblemReporterPlugin()
118{

Callers

nothing calls this directly

Calls 7

problemModelSetMethod · 0.80
languageControllerMethod · 0.80
uiControllerMethod · 0.80
documentControllerMethod · 0.80
addModelMethod · 0.45
addToolViewMethod · 0.45

Tested by

no test coverage detected