Commit a67c7d5b authored by hjk's avatar hjk

Analyzer: Introduce a convenience AnalyzerManager::createRunControl

... using a dummy AnalyzerStartParameters class as intermediate step
to remove AnalyzerStartParameters entirely.

Change-Id: I85663362e6b4f45d8e13f7928009bca05932eb99
Reviewed-by: default avatarChristian Stenger <>
parent 4052573d
......@@ -724,4 +724,14 @@ AnalyzerRunControl *AnalyzerManager::createRunControl(const AnalyzerStartParamet
return 0;
AnalyzerRunControl *AnalyzerManager::createRunControl(RunConfiguration *runConfiguration, Id runMode)
AnalyzerStartParameters dummy;
foreach (AnalyzerAction *action, d->m_actions) {
if (action->runMode() == runMode)
return action->runControlCreator()(dummy, runConfiguration, runMode);
return 0;
} // namespace Analyzer
......@@ -82,8 +82,13 @@ public:
static void handleToolFinished();
static QAction *stopAction();
// FIXME: Remove.
static AnalyzerRunControl *createRunControl(const AnalyzerStartParameters &sp,
ProjectExplorer::RunConfiguration *runConfiguration, Core::Id runMode);
// Use this.
static AnalyzerRunControl *createRunControl(
ProjectExplorer::RunConfiguration *runConfiguration, Core::Id runMode);
} // namespace Analyzer
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