1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 14:12:10 +02:00

Bug 547174 - Clean core project doesn't always show active in console

- add missing ProjectDescription.setBuildConfigs calls to
  CoreBuildLaunchBarTracker, CoreBuildLaunchConfigDelegate
  and CBuildConfiguration

Change-Id: I0d1097d04f3a210a6a7e9f8ad35adb9ba5d7c3d6
This commit is contained in:
Jeff Johnston 2019-05-16 16:43:05 -04:00
parent dffd0d1513
commit 74e63a9013
3 changed files with 7 additions and 3 deletions

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2015, 2016 QNX Software Systems and others.
* Copyright (c) 2015, 2019 QNX Software Systems and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@ -298,6 +298,7 @@ public abstract class CBuildConfiguration extends PlatformObject implements ICBu
names.remove(config.getName());
names.add(config.getName());
projectDesc.setBuildConfigs(names.toArray(new String[0]));
projectDesc.setActiveBuildConfig(config.getName());
project.setDescription(projectDesc, monitor);
}

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2017 QNX Software Systems and others.
* Copyright (c) 2017, 2019 QNX Software Systems and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@ -147,6 +147,8 @@ public class CoreBuildLaunchBarTracker implements ILaunchBarListener {
// active config last and this will be left in build console for user to see
names.remove(buildConfig.getBuildConfiguration().getName());
names.add(buildConfig.getBuildConfiguration().getName());
desc.setBuildConfigs(names.toArray(new String[0]));
desc.setActiveBuildConfig(buildConfig.getBuildConfiguration().getName());
finalProject.setDescription(desc, monitor);
}

View file

@ -1,5 +1,5 @@
/*******************************************************************************
* Copyright (c) 2016 QNX Software Systems and others.
* Copyright (c) 2016, 2019 QNX Software Systems and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
@ -158,6 +158,7 @@ public abstract class CoreBuildLaunchConfigDelegate extends LaunchConfigurationT
names.remove(buildConfig.getBuildConfiguration().getName());
names.add(buildConfig.getBuildConfiguration().getName());
desc.setBuildConfigs(names.toArray(new String[0]));
desc.setActiveBuildConfig(buildConfig.getBuildConfiguration().getName());
project.setDescription(desc, monitor);
}