mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 00:45:28 +02:00
Bug 323039 - add ability to set configuration in CfgHolder after construction.
This commit is contained in:
parent
ef4aeacd8a
commit
27510e422c
2 changed files with 9 additions and 0 deletions
|
@ -47,6 +47,14 @@ public class CfgHolder {
|
|||
} else
|
||||
name = cfg.getName();
|
||||
}
|
||||
|
||||
/**
|
||||
* @since 8.0
|
||||
*/
|
||||
public void setConfiguration(IConfiguration cfg) {
|
||||
this.cfg = cfg;
|
||||
}
|
||||
|
||||
public boolean isSystem() {
|
||||
if (cfg == null) return false;
|
||||
return (cfg.isSystemObject());
|
||||
|
|
|
@ -83,6 +83,7 @@ public class STDWizardHandler extends MBSWizardHandler {
|
|||
for (int i=0; i<cfgs.length; i++) {
|
||||
String s = (cfgs[i].getToolChain() == null) ? "0" : ((ToolChain)(cfgs[i].getToolChain())).getId(); //$NON-NLS-1$
|
||||
Configuration cfg = new Configuration(mProj, (ToolChain)cfgs[i].getToolChain(), ManagedBuildManager.calculateChildId(s, null), cfgs[i].getName());
|
||||
cfgs[i].setConfiguration(cfg);
|
||||
IBuilder bld = cfg.getEditableBuilder();
|
||||
if (bld != null) {
|
||||
if(bld.isInternalBuilder()){
|
||||
|
|
Loading…
Add table
Reference in a new issue