mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-07 09:46:02 +02:00
Change logic for active cfg setting
This commit is contained in:
parent
1d421414b9
commit
0a200aca39
1 changed files with 10 additions and 6 deletions
|
@ -409,7 +409,8 @@ public class MBSWizardHandler extends CWizardHandler {
|
||||||
|
|
||||||
cfgs = CfgHolder.unique(cfgs);
|
cfgs = CfgHolder.unique(cfgs);
|
||||||
|
|
||||||
ICConfigurationDescription active = null;
|
ICConfigurationDescription cfgDebug = null;
|
||||||
|
ICConfigurationDescription cfgFirst = null;
|
||||||
|
|
||||||
for(int i = 0; i < cfgs.length; i++){
|
for(int i = 0; i < cfgs.length; i++){
|
||||||
cf = (Configuration)cfgs[i].getConfiguration();
|
cf = (Configuration)cfgs[i].getConfiguration();
|
||||||
|
@ -427,12 +428,15 @@ public class MBSWizardHandler extends CWizardHandler {
|
||||||
config.setArtifactName(removeSpaces(project.getName()));
|
config.setArtifactName(removeSpaces(project.getName()));
|
||||||
|
|
||||||
IBuildProperty b = config.getBuildProperties().getProperty(PROPERTY);
|
IBuildProperty b = config.getBuildProperties().getProperty(PROPERTY);
|
||||||
if (b != null && b.getValue() != null && PROP_VAL.equals(b.getValue().getId()))
|
if (cfgDebug == null && b != null && b.getValue() != null && PROP_VAL.equals(b.getValue().getId()))
|
||||||
active = cfgDes;
|
cfgDebug = cfgDes;
|
||||||
else if (active == null) // select at least first configuration
|
if (cfgFirst == null) // select at least first configuration
|
||||||
active = cfgDes;
|
cfgFirst = cfgDes;
|
||||||
}
|
}
|
||||||
if (active != null) active.setActive();
|
if (cfgDebug == null)
|
||||||
|
cfgDebug = cfgFirst;
|
||||||
|
if (cfgDebug != null)
|
||||||
|
cfgDebug.setActive();
|
||||||
mngr.setProjectDescription(project, des);
|
mngr.setProjectDescription(project, des);
|
||||||
|
|
||||||
doPostProcess(project);
|
doPostProcess(project);
|
||||||
|
|
Loading…
Add table
Reference in a new issue