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

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


  {
    String dir = commandLine.getValue(Options.DIR_OPTION);
    dir = FileUtils.removeTrailingSlash(dir);
    Path path = new Path(dir);
    if (path.isAbsolute()){
      return new CIncludePathEntry(path, ICSettingEntry.LOCAL);
    }
    return new CIncludePathEntry(path, ICSettingEntry.VALUE_WORKSPACE_PATH);
  }
View Full Code Here


      if (LangID != null) {
    if (LangID.startsWith("org.eclipse.cdt.")) { //$NON-NLS-1$
        ICLanguageSettingEntry[] OrgIncludeEntries = lang.getSettingEntries(ICSettingEntry.INCLUDE_PATH);
        ICLanguageSettingEntry[] IncludeEntries = new ICLanguageSettingEntry[OrgIncludeEntries.length + 1];
        System.arraycopy(OrgIncludeEntries, 0, IncludeEntries, 0, OrgIncludeEntries.length);
        IncludeEntries[OrgIncludeEntries.length] = new CIncludePathEntry(IncludePath, ICSettingEntry.VALUE_WORKSPACE_PATH); // (location.toString());
        lang.setSettingEntries(ICSettingEntry.INCLUDE_PATH, IncludeEntries);
    }
      }
  }
    }
View Full Code Here

        for (int curIncludeEntry = 0; curIncludeEntry < IncludeEntries.length; curIncludeEntry++) {
            if (IncludeEntries[curIncludeEntry].getName().startsWith(myOldName)) {
          String newValue = IncludeEntries[curIncludeEntry].getName().replace(myOldName, myNewName);
          languageChanged = true;
          projectDescriptionChanged = true;
          IncludeEntries[curIncludeEntry] = new CIncludePathEntry(newValue, ICSettingEntry.VALUE_WORKSPACE_PATH);
            }
        }
        if (languageChanged) {
            lang.setSettingEntries(ICSettingEntry.INCLUDE_PATH, IncludeEntries);
        }
View Full Code Here

TOP

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

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.