Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.SubProgressMonitor.subTask()


            for( Iterator<IService> iterator = possible.iterator(); iterator.hasNext(); ) {
                IService service = iterator.next();

                if (service == null) continue;

                monitor3.subTask("connect " + service.getID());
                try {
                    // try connecting
                    IServiceInfo info = service.getInfo(new SubProgressMonitor(monitor3, 10));

                    if (info == null) {
View Full Code Here


        if (manager.forceBatchInitializations(true/*initAfterLoad*/)) { // if no other thread has started the batch container initializations
          manager.getClasspathContainer(Path.EMPTY, null); // force the batch initialization
        } else { // else wait for the batch initialization to finish
          while (manager.batchContainerInitializations == JavaModelManager.BATCH_INITIALIZATION_IN_PROGRESS) {
            if (subMonitor != null) {
              subMonitor.subTask(manager.batchContainerInitializationsProgress.subTaskName);
              subMonitor.worked(manager.batchContainerInitializationsProgress.getWorked());
            }
            synchronized(manager) {
              try {
                manager.wait(100);
View Full Code Here

        return;
     
      IPath destination = partDestinationMap.get(root);
      IPath htmlDestination = getHTMLDestinationFor(destination);
      EObject resolved = partEObjectMap.get(root);
      finalMonitor.subTask("Writing " + htmlDestination.lastSegment());
     
      // construct the HTML
      StringBuffer html = new StringBuffer();
      html.append(getHTMLHeader(targetDiagram, resolved))
        .append(getBreadcrumb(resolved))
View Full Code Here

    try {
      Assert.isNotNull(this.project);
      IPath reposPath = ToolProjectSupport.getLocalReposFolders(project).getLocation().append(this.reposName);
      File reposFile = reposPath.toFile();
      subMonitor.beginTask("Creating local repository", 9);
      subMonitor.subTask(this.reposName);
      rpcreate(reposPath).waitFor();
      subMonitor.worked(5);
      // logger
      subMonitor.subTask("Setting default log flags");
      project.setPersistentProperty(ToolProjectSupport.loggerQualifiedName,
View Full Code Here

      subMonitor.beginTask("Creating local repository", 9);
      subMonitor.subTask(this.reposName);
      rpcreate(reposPath).waitFor();
      subMonitor.worked(5);
      // logger
      subMonitor.subTask("Setting default log flags");
      project.setPersistentProperty(ToolProjectSupport.loggerQualifiedName,
          ToolProjectSupport.DEFAULT_LOG_FLAGS);
     
      subMonitor.worked(1);
      // repos
View Full Code Here

      project.setPersistentProperty(ToolProjectSupport.loggerQualifiedName,
          ToolProjectSupport.DEFAULT_LOG_FLAGS);
     
      subMonitor.worked(1);
      // repos
      subMonitor.subTask("Adding repository to project");
      project.setPersistentProperty(ToolProjectSupport.reposQualifiedName,
          "bt:" + reposPath.toFile().getAbsolutePath());
      subMonitor.worked(1);
      // workspace
      subMonitor.subTask("Setting workspace: " + this.reposName);
View Full Code Here

      subMonitor.subTask("Adding repository to project");
      project.setPersistentProperty(ToolProjectSupport.reposQualifiedName,
          "bt:" + reposPath.toFile().getAbsolutePath());
      subMonitor.worked(1);
      // workspace
      subMonitor.subTask("Setting workspace: " + this.reposName);
      project.setPersistentProperty(ToolProjectSupport.workspaceQualifiedName,
          this.reposName);
      // workspacePassword
      project.setPersistentProperty(ToolProjectSupport.worspacePasswordQualifiedName,
          this.reposName);
View Full Code Here

      return;
    }
   
    IProgressMonitor subMonitor = new SubProgressMonitor(monitor, 1);
    subMonitor.beginTask(HyLauncherMessages.getString("HyVMRunner.Launching_virtual_machine..._1"), 2); //$NON-NLS-1$
    subMonitor.subTask(HyLauncherMessages.getString("HyVMRunner.Constructing_command_line..._2"));   //$NON-NLS-1$
   
    File workingDir = getWorkingDir(config);
    String location= getJDKLocation();
    String program = constructProgramString(location, config);
    List arguments= new ArrayList();
View Full Code Here

    if (monitor.isCanceled()) {
      return;
    }
   
    subMonitor.worked(1);
    subMonitor.subTask(HyLauncherMessages.getString("HyVMRunner.Starting_virtual_machine..._3")); //$NON-NLS-1$
   
    Process p= exec(cmdLine, workingDir, envp);
    if (p != null) {
      // Log the current launch command to the platform log
      logLaunchCmd(cmdLine, false);
View Full Code Here

    // respond to delta
    if (m_delta != null) {
      if (Activator.getStore().getBoolean(Constants.P_BUILDER_GENERATE_ASYNC)) {
        monitor.beginTask("Building Remote Service's...", 2);
        //
        monitor.subTask("Looking for RemoteService Files");
        findRemoteServiceFiles();
        monitor.worked(1);
        //
        monitor.subTask("Updating RemoteService's Async and Impl parts");
        updateRemoteServices();
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.