Package org.eclipse.core.runtime

Examples of org.eclipse.core.runtime.IProgressMonitor.beginTask()


            IProgressMonitor monitor = request.getMonitor();
            if (monitor == null) {
                monitor = new NullProgressMonitor();
            }
            monitor.beginTask("Find likely modules with children", 100);

            try {
                List<ModulesKey> modules;
                try {
                    request.pushMonitor(new SubProgressMonitor(monitor, 90));
View Full Code Here


                public void done() {
                    m.done();
                }

                public void beginTask(String name, int totalWork) {
                    m.beginTask(name, totalWork);
                }
            };
        }
        return progressMonitor;
    }
View Full Code Here

        IProgressMonitor monitor = req.getMonitor();

        Map<Tuple<String, File>, HashSet<ASTEntry>> occurrencesInOtherFiles;

        try {
            monitor.beginTask("Find all occurrences", 100);
            monitor.setTaskName("Find all occurrences");
            RefactoringStatus status;
            try {
                req.pushMonitor(new SubProgressMonitor(monitor, 10));
                status = processor.checkInitialConditions(req.getMonitor());
View Full Code Here

  }

  public void beginTask(String name, int totalWork) {
    IProgressMonitor monitor = getMonitor();
    if (monitor != null)
      monitor.beginTask(name, totalWork);
  }

  public void done() {
    IProgressMonitor monitor = getMonitor();
    if (monitor != null)
View Full Code Here

    if (m == null)
      monitor = new NullProgressMonitor();
    else
      monitor = m;
    try {
      monitor.beginTask(NLS.bind(CoreText.TagOperation_performingTagging,
          tag.getTag()), 3);

      ObjectId tagId = updateTagObject();
      monitor.worked(1);
View Full Code Here

    if (m == null)
      monitor = new NullProgressMonitor();
    else
      monitor = m;

    monitor.beginTask(CoreText.DisconnectProviderOperation_disconnecting,
        projectList.size() * 200);
    try {
      for (IProject p : projectList) {
        // TODO is this the right location?
        if (GitTraceLocation.CORE.isActive())
View Full Code Here

  }

  public void execute(IProgressMonitor m) throws CoreException {
    IProgressMonitor monitor = (m != null) ? m : new NullProgressMonitor();

    monitor.beginTask(
        CoreText.RemoveFromIndexOperation_removingFilesFromIndex,
        pathsByRepository.size());

    for (Map.Entry<Repository, Collection<String>> entry : pathsByRepository.entrySet()) {
      Repository repository = entry.getKey();
View Full Code Here

    IProgressMonitor monitor;
    if (m == null)
      monitor = new NullProgressMonitor();
    else
      monitor = m;
    monitor.beginTask(NLS.bind(CoreText.PullOperation_TaskName, Integer
        .valueOf(repositories.length)), repositories.length * 2);
    IWorkspaceRunnable action = new IWorkspaceRunnable() {
      public void run(IProgressMonitor mymonitor) throws CoreException {
        for (int i = 0; i < repositories.length; i++) {
          Repository repository = repositories[i];
View Full Code Here

      totalWork = specification.getURIsNumber()
          * WORK_UNITS_PER_TRANSPORT;
    else
      totalWork = 1;
    if (dryRun)
      monitor.beginTask(CoreText.PushOperation_taskNameDryRun, totalWork);
    else
      monitor.beginTask(CoreText.PushOperation_taskNameNormalRun,
          totalWork);

    operationResult = new PushOperationResult();
View Full Code Here

    else
      totalWork = 1;
    if (dryRun)
      monitor.beginTask(CoreText.PushOperation_taskNameDryRun, totalWork);
    else
      monitor.beginTask(CoreText.PushOperation_taskNameNormalRun,
          totalWork);

    operationResult = new PushOperationResult();
    Git git = new Git(localDb);
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.