mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-10 17:55:39 +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
|
} else
|
||||||
name = cfg.getName();
|
name = cfg.getName();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 8.0
|
||||||
|
*/
|
||||||
|
public void setConfiguration(IConfiguration cfg) {
|
||||||
|
this.cfg = cfg;
|
||||||
|
}
|
||||||
|
|
||||||
public boolean isSystem() {
|
public boolean isSystem() {
|
||||||
if (cfg == null) return false;
|
if (cfg == null) return false;
|
||||||
return (cfg.isSystemObject());
|
return (cfg.isSystemObject());
|
||||||
|
|
|
@ -83,6 +83,7 @@ public class STDWizardHandler extends MBSWizardHandler {
|
||||||
for (int i=0; i<cfgs.length; i++) {
|
for (int i=0; i<cfgs.length; i++) {
|
||||||
String s = (cfgs[i].getToolChain() == null) ? "0" : ((ToolChain)(cfgs[i].getToolChain())).getId(); //$NON-NLS-1$
|
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());
|
Configuration cfg = new Configuration(mProj, (ToolChain)cfgs[i].getToolChain(), ManagedBuildManager.calculateChildId(s, null), cfgs[i].getName());
|
||||||
|
cfgs[i].setConfiguration(cfg);
|
||||||
IBuilder bld = cfg.getEditableBuilder();
|
IBuilder bld = cfg.getEditableBuilder();
|
||||||
if (bld != null) {
|
if (bld != null) {
|
||||||
if(bld.isInternalBuilder()){
|
if(bld.isInternalBuilder()){
|
||||||
|
|
Loading…
Add table
Reference in a new issue