Package org.eclipse.cdt.core.settings.model

Examples of org.eclipse.cdt.core.settings.model.ICResourceDescription


      //
      // add the libraries to the project if needed
      //
      mNewArduinoSketchWizardCodeSelectionPage.importLibraries(project, prjDesc.getConfigurations());

      ICResourceDescription cfgd = defaultConfigDescription.getResourceDescription(new Path(""), true);
      ICExclusionPatternPathEntry[] entries = cfgd.getConfiguration().getSourceEntries();
      if (entries.length == 1) {
    Path exclusionPath[] = new Path[2];
    exclusionPath[0] = new Path("Libraries/*/?xamples");
    exclusionPath[1] = new Path("Libraries/*/?xtras");
    ICExclusionPatternPathEntry newSourceEntry = new CSourceEntry(entries[0].getFullPath(), exclusionPath,
      ICSettingEntry.VALUE_WORKSPACE_PATH);
    ICSourceEntry[] out = null;
    out = new ICSourceEntry[1];
    out[0] = (ICSourceEntry) newSourceEntry;
    try {
        cfgd.getConfiguration().setSourceEntries(out);
    } catch (CoreException e) {
        // ignore
    }

      } else {
    // this should not happen
      }

      // set warning levels default on
      IEnvironmentVariableManager envManager = CCorePlugin.getDefault().getBuildEnvironmentManager();
      IContributedEnvironment contribEnv = envManager.getContributedEnvironment();
      IEnvironmentVariable var = new EnvironmentVariable(ArduinoConst.ENV_KEY_JANTJE_WARNING_LEVEL, ArduinoConst.ENV_KEY_WARNING_LEVEL_ON);
      contribEnv.addVariable(var, cfgd.getConfiguration());

      prjDesc.setActiveConfiguration(defaultConfigDescription);
      prjDesc.setCdtProjectCreated();
      CoreModel.getDefault().getProjectDescriptionManager().setProjectDescription(project, prjDesc, true, null);
      monitor.done();
View Full Code Here

TOP

Related Classes of org.eclipse.cdt.core.settings.model.ICResourceDescription

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.