Package org.eclipse.cdt.managedbuilder.internal.core

Examples of org.eclipse.cdt.managedbuilder.internal.core.Configuration


        cfgs = CfgHolder.reorder(cfgs);
        int work = 50 / cfgs.length;
        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()){
              IConfiguration prefCfg =
                ManagedBuildManager.getPreferenceConfiguration(false);
              IBuilder prefBuilder = prefCfg.getBuilder();
              cfg.changeBuilder(
                  prefBuilder,
                  ManagedBuildManager.calculateChildId(cfg.getId(), null),
                  prefBuilder.getName());
              bld = cfg.getEditableBuilder();
              bld.setBuildPath(null);
            }
            bld.setManagedBuildOn(false);
          }
          cfg.setArtifactName(mProj.getDefaultArtifactName());
          CConfigurationData data = cfg.getConfigurationData();
          des.createConfiguration(ManagedBuildManager.CFG_DATA_PROVIDER_ID, data);
          monitor.worked(work);
        }
        mngr.setProjectDescription(project, des);
    }
View Full Code Here


  // 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);
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.managedbuilder.internal.core.Configuration

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.