// Iterate across the configurations
for (int i = 0; i < alCfgs.size(); i++) {
IToolChain tcs = ManagedBuildManager.getExtensionToolChain(alCfgs.get(i).ToolchainID);
Configuration cfg = new Configuration(mProj, (ToolChain) tcs, ManagedBuildManager.calculateChildId(alCfgs.get(i).ToolchainID, null),
alCfgs.get(i).Name);
IBuilder bld = cfg.getEditableBuilder();
if (bld != null) {
// if (bld.isInternalBuilder()) {
// IConfiguration prefCfg = ManagedBuildManager.getPreferenceConfiguration(false);
// IBuilder prefBuilder = prefCfg.getBuilder();
// String name = prefBuilder.getName();
// cfg.changeBuilder(prefBuilder, ManagedBuildManager.calculateChildId(cfg.getId(), null), name);
// bld = cfg.getEditableBuilder();
// bld.setBuildPath(null);
// }
bld.setManagedBuildOn(isManagedBuild);
cfg.setArtifactName("${ProjName}");
} else {
System.out.println("Messages.StdProjectTypeHandler_3");
}
CConfigurationData data = cfg.getConfigurationData();
ICConfigurationDescription cfgDes = des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data);
setDefaultLanguageSettingsProviders(project, alCfgs.get(i), cfg, cfgDes);
}
monitor.worked(50);