1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-10 01:35:39 +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()); cloneConfigSelector.setEnabled(b_clone.getSelection());
realConfigSelector.setEnabled(b_real.getSelection()); realConfigSelector.setEnabled(b_real.getSelection());
} }
}
}
public int open() { public int open() {
if (parentShell == null) return 1; if (parentShell == null) return 1;
@ -341,9 +340,9 @@ public class NewCfgDialog implements INewCfgDialog {
IProjectType pType = cfg.getProjectType(); IProjectType pType = cfg.getProjectType();
if(pType != null){ if(pType != null){
IConfiguration[] cfs = pType.getConfigurations(); IConfiguration[] cfs = pType.getConfigurations();
for (int j=0; j<cfs.length; j++) { for (IConfiguration c : cfs) {
if (cfs[j] != null && !lst.contains(cfs[j])) if (c != null && !lst.contains(c))
lst.add(cfs[j]); lst.add(c);
} }
} }
} }
@ -460,6 +459,7 @@ public class NewCfgDialog implements INewCfgDialog {
if (b_clone.getSelection()) { if (b_clone.getSelection()) {
ICConfigurationDescription base = ManagedBuildManager.getDescriptionForConfiguration(parentConfig); ICConfigurationDescription base = ManagedBuildManager.getDescriptionForConfiguration(parentConfig);
cfgDes = des.createConfiguration(id, newName, base); cfgDes = des.createConfiguration(id, newName, base);
cfgDes.setDescription(newDescription);
} else { } else {
CConfigurationData data = config.getConfigurationData(); CConfigurationData data = config.getConfigurationData();
cfgDes = des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data); cfgDes = des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data);