Examples of ICProject


Examples of org.eclipse.cdt.core.model.ICProject

    PathEntryTranslator.PathEntryCollector cr =
      PathEntryTranslator.collectEntries(project, config);

    IPathEntry[] entries = cr.getEntries(
        PathEntryTranslator.INCLUDE_USER, config);
    ICProject cproject = CoreModel.getDefault().create(project);
    String dotcproject = project.getFile(".cproject").getRawLocation().toOSString();
    FileOffsets offsets = FileOffsets.compile(dotcproject);
    String cprojectValue = IOUtils.toString(new FileInputStream(dotcproject));
    for (IPathEntry entry : entries){
      ICModelStatus status =
View Full Code Here

Examples of org.eclipse.cdt.core.model.ICProject

  @Override
  public void refresh(IProject project, CommandLine commandLine)
    throws Exception
  {
    ICProject cproject = CUtils.getCProject(project);
    CCorePlugin.getIndexManager().reindex(cproject);
    CCorePlugin.getIndexManager()
      .joinIndexer(IIndexManager.FOREVER, new NullProgressMonitor());
  }
View Full Code Here

Examples of org.eclipse.cdt.core.model.ICProject

  header += "//If you touch this file your change will be overwritten during the next build\n";
  header += "//This file has been generated on ";
  header += new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
  header += "\n";
  header += "\n";
  ICProject tt = CoreModel.getDefault().create(iProject);
  IIndex index = CCorePlugin.getIndexManager().getIndex(tt);

  IResource allResources[] = iProject.members(0);// .getFolder("").members(0);
  int numInoFiles = 0;
  for (IResource curResource : allResources) {
View Full Code Here

Examples of org.eclipse.cdt.core.model.ICProject

    Iterator<?> iter = ((IStructuredSelection) selection).iterator();
    while (iter.hasNext()) {
        Object selItem = iter.next();
        IProject project = null;
        if (selItem instanceof ICElement) {
      ICProject cproject = ((ICElement) selItem).getCProject();
      if (cproject != null)
          project = cproject.getProject();
        } else if (selItem instanceof IResource) {
      project = ((IResource) selItem).getProject();
      // } else if (selItem instanceof IncludeRefContainer) {
      // ICProject fCProject =
      // ((IncludeRefContainer)selItem).getCProject();
View Full Code Here

Examples of org.eclipse.cdt.core.model.ICProject

      if (numRegions < regions.length) {
        regions = Arrays.copyOf(regions, numRegions);
      }

      // Calculate formatting changes for the regions after the refactoring changes.
      final ICProject project = tu.getCProject();
      final Map<String, Object> options = new HashMap<String, Object>(project.getOptions(true));
      options.put(DefaultCodeFormatterConstants.FORMATTER_TRANSLATION_UNIT, tu);
      // Allow all comments to be indented.
      options.put(DefaultCodeFormatterConstants.FORMATTER_COMMENT_NEVER_INDENT_LINE_COMMENTS_ON_FIRST_COLUMN, DefaultCodeFormatterConstants.FALSE);
      final CodeFormatter formatter = ToolFactory.createCodeFormatter(options);
      code = document.get();
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.