forked from qt-creator/qt-creator
ProjectExplorer: Make kit aspects self-register
Also, construct the KitManager implicitly when the first KitAspect is created. Ramp-down is still explicit and somewhat odd. Change-Id: If1506e1d0789ecabbaad2d8008851d0b42c5218b Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
This commit is contained in:
@@ -70,6 +70,10 @@ public:
|
||||
CMakeBuildConfigurationFactory buildConfigFactory;
|
||||
CMakeEditorFactory editorFactor;
|
||||
CMakeLocatorFilter locatorFiler;
|
||||
|
||||
CMakeKitAspect cmakeKitAspect;
|
||||
CMakeGeneratorKitAspect cmakeGeneratorKitAspect;
|
||||
CMakeConfigurationKitAspect cmakeConfigurationKitAspect;
|
||||
};
|
||||
|
||||
const std::unique_ptr<CMakeSpecificSettings>
|
||||
@@ -106,10 +110,6 @@ bool CMakeProjectPlugin::initialize(const QStringList & /*arguments*/, QString *
|
||||
|
||||
new CMakeToolManager(this);
|
||||
|
||||
KitManager::registerKitAspect<CMakeKitAspect>();
|
||||
KitManager::registerKitAspect<CMakeGeneratorKitAspect>();
|
||||
KitManager::registerKitAspect<CMakeConfigurationKitAspect>();
|
||||
|
||||
//menus
|
||||
ActionContainer *msubproject =
|
||||
ActionManager::actionContainer(ProjectExplorer::Constants::M_SUBPROJECTCONTEXT);
|
||||
|
||||
Reference in New Issue
Block a user