| 804 | } |
| 805 | |
| 806 | void RunController::addConfigurationType( LaunchConfigurationType* type ) |
| 807 | { |
| 808 | Q_D(RunController); |
| 809 | |
| 810 | const auto typeId = type->id(); |
| 811 | if (d->launchConfigurationTypes.contains(typeId)) { |
| 812 | qCWarning(SHELL) << "cannot add configuration type with an already registered ID" << typeId; |
| 813 | return; |
| 814 | } |
| 815 | d->launchConfigurationTypes.insert(typeId, type); |
| 816 | |
| 817 | if (!d->executeMode) { |
| 818 | qCDebug(SHELL) << "added configuration type" << typeId |
| 819 | << "before initialization or after cleanup of the RunController, " |
| 820 | "so will not read launch configurations now"; |
| 821 | return; |
| 822 | } |
| 823 | qCDebug(SHELL).nospace() << "added configuration type " << typeId << ", reading launch configurations of this type"; |
| 824 | d->readAllLaunchConfigurations(typeId); |
| 825 | d->updateCurrentLaunchAction(); |
| 826 | } |
| 827 | |
| 828 | void RunController::removeConfigurationType( LaunchConfigurationType* type ) |
| 829 | { |
no test coverage detected