1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-09 17:25:38 +02:00

Bug #218484 : Description not saved when creating a new configuration based on an existing one

This commit is contained in:
Oleg Krasilnikov 2008-02-11 14:28:53 +00:00
parent d12b37a95c
commit b848ef7a4d

View file

@ -308,8 +308,7 @@ public class NewCfgDialog implements INewCfgDialog {
cloneConfigSelector.setEnabled(b_clone.getSelection());
realConfigSelector.setEnabled(b_real.getSelection());
}
}
}
public int open() {
if (parentShell == null) return 1;
@ -341,9 +340,9 @@ public class NewCfgDialog implements INewCfgDialog {
IProjectType pType = cfg.getProjectType();
if(pType != null){
IConfiguration[] cfs = pType.getConfigurations();
for (int j=0; j<cfs.length; j++) {
if (cfs[j] != null && !lst.contains(cfs[j]))
lst.add(cfs[j]);
for (IConfiguration c : cfs) {
if (c != null && !lst.contains(c))
lst.add(c);
}
}
}
@ -460,6 +459,7 @@ public class NewCfgDialog implements INewCfgDialog {
if (b_clone.getSelection()) {
ICConfigurationDescription base = ManagedBuildManager.getDescriptionForConfiguration(parentConfig);
cfgDes = des.createConfiguration(id, newName, base);
cfgDes.setDescription(newDescription);
} else {
CConfigurationData data = config.getConfigurationData();
cfgDes = des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data);