Package org.eclipse.core.internal.events

Examples of org.eclipse.core.internal.events.BuilderPersistentInfo


    monitor = Policy.monitorFor(monitor);
    try {
      ArrayList infos = null;
      String projectName = null;
      for (int i = 0; i < buildersToBeLinked.size(); i++) {
        BuilderPersistentInfo info = (BuilderPersistentInfo) buildersToBeLinked.get(i);
        if (!info.getProjectName().equals(projectName)) {
          if (infos != null) { // if it is not the first iteration
            IProject project = workspace.getRoot().getProject(projectName);
            workspace.getBuildManager().setBuildersPersistentInfo(project, infos);
          }
          projectName = info.getProjectName();
          infos = new ArrayList(5);
        }
        info.setLastBuildTree(trees[index++]);
        infos.add(info);
      }
      if (infos != null) {
        IProject project = workspace.getRoot().getProject(projectName);
        workspace.getBuildManager().setBuildersPersistentInfo(project, infos);
View Full Code Here


    String projectName = input.readUTF();
    //use the name of the project handle if available
    if (project != null)
      projectName = project.getName();
    String builderName = input.readUTF();
    return new BuilderPersistentInfo(projectName, builderName, index);
  }
View Full Code Here

      /* map builder names to trees */
      if (numBuilders > 0) {
        ArrayList infos = new ArrayList(trees.length * 2 + 1);
        for (int i = 0; i < numBuilders; i++) {
          BuilderPersistentInfo info = new BuilderPersistentInfo(project.getName(), builderNames[i], -1);
          info.setLastBuildTree(trees[i]);
          infos.add(info);
        }
        workspace.getBuildManager().setBuildersPersistentInfo(project, infos);
      }
      monitor.worked(1);
View Full Code Here

  protected void readBuildersPersistentInfo(IProject project, DataInputStream input, List builders, IProgressMonitor monitor) throws IOException {
    monitor = Policy.monitorFor(monitor);
    try {
      int builderCount = input.readInt();
      for (int i = 0; i < builderCount; i++) {
        BuilderPersistentInfo info = readBuilderInfo(project, input, i);
        // read interesting projects
        int n = input.readInt();
        IProject[] projects = new IProject[n];
        for (int j = 0; j < n; j++)
          projects[j] = workspace.getRoot().getProject(input.readUTF());
        info.setInterestingProjects(projects);
        builders.add(info);
      }
    } finally {
      monitor.done();
    }
View Full Code Here

TOP

Related Classes of org.eclipse.core.internal.events.BuilderPersistentInfo

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.