Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleg Krasilnikov2008-02-11 09:28:53 -0500
committerOleg Krasilnikov2008-02-11 09:28:53 -0500
commitb848ef7a4d0e479b4a864b885d6344fbe7f8ec5d (patch)
tree6e62e618bf48672df9a2c8036d237bccfc02864a
parentd12b37a95cfbbdbc70c59f2d44a7343329621acb (diff)
downloadorg.eclipse.cdt-b848ef7a4d0e479b4a864b885d6344fbe7f8ec5d.tar.gz
org.eclipse.cdt-b848ef7a4d0e479b4a864b885d6344fbe7f8ec5d.tar.xz
org.eclipse.cdt-b848ef7a4d0e479b4a864b885d6344fbe7f8ec5d.zip
Bug #218484 : Description not saved when creating a new configuration based on an existing one
-rw-r--r--build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/NewCfgDialog.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/NewCfgDialog.java b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/NewCfgDialog.java
index 705000c95d..5fb00023e6 100644
--- a/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/NewCfgDialog.java
+++ b/build/org.eclipse.cdt.managedbuilder.ui/src/org/eclipse/cdt/managedbuilder/ui/properties/NewCfgDialog.java
@@ -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);

Back to the top