Examples of CIncludePathEntry


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

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

      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

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

        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
Copyright © 2018 www.massapi.com. 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.