Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-dev] MMB question

Hi MMB guys,
I was wondering about STDWizardHandler class, partiqulary about the following code:
       .....
       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());
      .....
You see: toolchain ID replaces configuration ID. Is it what supposed to be? If yes, could you please briefly describe the rational? Implementation of corresponding fragment in MBSWizardHandler differs from that:
       .....
       for(int i = 0; i < cfgs.length; i++){
           cf = (Configuration)cfgs[i].getConfiguration();
           String id = ManagedBuildManager.calculateChildId(cf.getId(), null);
           Configuration config = new Configuration(mProj, cf, id, false, true);
       .....

Regards,

Alex

Back to the top