Package org.eclipse.core.runtime

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


      String message = e.getMessage();
      DLTKCore.error(message, e);
      throw new CoreException(new Status(IStatus.ERROR, RutaIdeUIPlugin.PLUGIN_ID,
              ScriptLaunchConfigurationConstants.ERR_INTERNAL_ERROR, message, e));
    }
    mon.worked(1);
    for (File each : inputFiles) {

      mon.setTaskName("Processing " + each.getName());
      if (mon.isCanceled()) {
        break;
View Full Code Here


        RutaEngine.removeSourceDocumentInformation(cas);
        RutaEngine.addSourceDocumentInformation(cas, each);

        ae.process(cas);

        mon.worked(1);

        if (mon.isCanceled()) {
          break;
        }
View Full Code Here

        }

        File outputFile = new File(outputDir, each.getName() + ".xmi");
        mon.setTaskName("Saving " + outputFile.getName());
        writeXmi(cas, outputFile);
        mon.worked(1);
      } catch (Exception e) {
        if (cas != null) {
          cas.release();
        }
        if (ae != null) {
View Full Code Here

      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,
          ToolProjectSupport.DEFAULT_LOG_FLAGS);
     
View Full Code Here

      // logger
      subMonitor.subTask("Setting default log flags");
      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);
View Full Code Here

      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);
      project.setPersistentProperty(ToolProjectSupport.workspaceQualifiedName,
          this.reposName);
      // workspacePassword
View Full Code Here

      project.setPersistentProperty(ToolProjectSupport.workspaceQualifiedName,
          this.reposName);
      // workspacePassword
      project.setPersistentProperty(ToolProjectSupport.worspacePasswordQualifiedName,
          this.reposName);
      subMonitor.worked(2);

    } catch (InterruptedException e) {
      reportError(e);
    } catch (CoreException e) {
      reportError(e);
View Full Code Here

      Assert.isNotNull(this.project);
      Assert.isNotNull(this.repos);
      Assert.isNotNull(this.wexFile);
      subMonitor.beginTask("Importing WEX " + this.wexFile, 100);
      consumeWex().waitFor();
      subMonitor.worked(100);

    } catch (InterruptedException e) {
      reportError(e);
    } finally {
      subMonitor.done();
View Full Code Here

    // check for cancellation
    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
View Full Code Here

      }
     
      IProcess process= newProcess(launch, p, renderProcessLabel(cmdLine), getDefaultProcessMap());
      process.setAttribute(IProcess.ATTR_CMDLINE, renderCommandLine(cmdLine));
    }
    subMonitor.worked(1);
    subMonitor.done();
  }

  /**
   * Write the launch invocation string to the platform log.
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.