Examples of subTask()


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

                String format= LaunchingMessages.StandardVMRunner__0____1___2;
            String label = NLS.bind(format, new String[] { cmdLine[0], ts.toString() });
                IProcess process= newProcess(launch, p, label, getDefaultProcessMap());
                process.setAttribute(IProcess.ATTR_CMDLINE, renderCommandLineInternal(cmdLine));
                subMonitor.worked(1);
                subMonitor.subTask(LaunchingMessages.StandardVMDebugger_Establishing_debug_connection____5);
                boolean retry= false;
                do  {
                    try {

                        ConnectRunnable runnable = new ConnectRunnable(connector, map);
View Full Code Here

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

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

        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

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

        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

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

    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

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

      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

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

      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

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

      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

Examples of org.jboss.forge.addon.ui.progress.UIProgressMonitor.subTask()

      DirectoryResource projectRoot = resourceFactory.create(DirectoryResource.class, tempDir);
      UIProgressMonitor progressMonitor = context.getProgressMonitor();
      UIOutput output = context.getUIContext().getProvider().getOutput();
      progressMonitor.beginTask("Installing Addon from Git", 4);

      progressMonitor.subTask("Cloning repository in " + tempDir);

      // Clone repository
      cloneTo(projectRoot);

      progressMonitor.worked(1);
View Full Code Here

Examples of org.jboss.forge.addon.ui.progress.UIProgressMonitor.subTask()

      // Clone repository
      cloneTo(projectRoot);

      progressMonitor.worked(1);
      progressMonitor.subTask("Installing project into local repository");
      // Build project
      Project project = projectFactory.findProject(projectRoot);
      if (project == null)
      {
         return Results.fail("No project found in root " + projectRoot.getFullyQualifiedName());
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.