Commit e5556f5b authored by Tobias Hunger's avatar Tobias Hunger
Browse files

RunConfiguration: Add method to add individual RunConfigurationAspects



Change-Id: I6ed2e2ae673840ff4340eedd96fe5019ab495679
Reviewed-by: default avatarDaniel Teske <daniel.teske@digia.com>
parent 44cc98c9
......@@ -156,11 +156,16 @@ void RunConfiguration::addExtraAspects()
return;
foreach (IRunControlFactory *factory, ExtensionSystem::PluginManager::getObjects<IRunControlFactory>())
if (IRunConfigurationAspect *aspect = factory->createRunConfigurationAspect(this))
m_aspects.append(aspect);
addExtraAspect(factory->createRunConfigurationAspect(this));
m_aspectsInitialized = true;
}
void RunConfiguration::addExtraAspect(IRunConfigurationAspect *aspect)
{
if (aspect)
m_aspects += aspect;
}
void RunConfiguration::ctor()
{
connect(this, SIGNAL(enabledChanged()), this, SIGNAL(requestRunActionsUpdate()));
......
......@@ -126,6 +126,7 @@ public:
virtual ProjectExplorer::Abi abi() const;
void addExtraAspects();
void addExtraAspect(IRunConfigurationAspect *aspect);
signals:
void enabledChanged();
......
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