mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug #190550 : Default Configurations, list incomplete
This commit is contained in:
parent
c5b5330a13
commit
dfd1fdcc1f
2 changed files with 8 additions and 2 deletions
|
@ -187,7 +187,7 @@ public class BuilderSettingsTab extends AbstractCBuildPropertyTab {
|
||||||
// Workbench behaviour group
|
// Workbench behaviour group
|
||||||
AccessibleListener makeTargetLabelAccessibleListener = new AccessibleAdapter() {
|
AccessibleListener makeTargetLabelAccessibleListener = new AccessibleAdapter() {
|
||||||
public void getName(AccessibleEvent e) {
|
public void getName(AccessibleEvent e) {
|
||||||
e.result = Messages.getString("BuilderSettingsTab.16");
|
e.result = Messages.getString("BuilderSettingsTab.16"); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
Group g4 = setupGroup(comp, Messages.getString("BuilderSettingsTab.14"), 3, GridData.FILL_HORIZONTAL); //$NON-NLS-1$
|
Group g4 = setupGroup(comp, Messages.getString("BuilderSettingsTab.14"), 3, GridData.FILL_HORIZONTAL); //$NON-NLS-1$
|
||||||
|
|
|
@ -332,7 +332,13 @@ public class NewCfgDialog implements INewCfgDialog {
|
||||||
cfgds[i] = ManagedBuildManager.getConfigurationForDescription(descs[i]);
|
cfgds[i] = ManagedBuildManager.getConfigurationForDescription(descs[i]);
|
||||||
IConfiguration cfg = cfgds[i];
|
IConfiguration cfg = cfgds[i];
|
||||||
for(; cfg != null && !cfg.isExtensionElement(); cfg = cfg.getParent());
|
for(; cfg != null && !cfg.isExtensionElement(); cfg = cfg.getParent());
|
||||||
if (cfg != null && !lst.contains(cfg)) lst.add(cfg);
|
if (cfg != null) {
|
||||||
|
IConfiguration[] cfs = cfg.getProjectType().getConfigurations();
|
||||||
|
for (int j=0; j<cfs.length; j++) {
|
||||||
|
if (cfs[j] != null && !lst.contains(cfs[j]))
|
||||||
|
lst.add(cfs[j]);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
rcfgs = (IConfiguration[])lst.toArray(new IConfiguration[lst.size()]);
|
rcfgs = (IConfiguration[])lst.toArray(new IConfiguration[lst.size()]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue