Package org.eclipse.core.runtime

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


                public void internalWorked(double work) {
                    m.internalWorked(work);
                }

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

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


            occurrencesInOtherFiles.put(new Tuple<String, File>(req.moduleName, req.pyEdit.getEditorFile()),
                    occurrences);

            req.getMonitor().worked(5);
        } finally {
            monitor.done();
        }
        return occurrencesInOtherFiles;
    }

}
View Full Code Here

  }

  public void done() {
    IProgressMonitor monitor = getMonitor();
    if (monitor != null)
      monitor.done();
    this.worked = 0;
    this.subTaskName = ""; //$NON-NLS-1$
  }

  public void internalWorked(double work) {
View Full Code Here

      updateRepo(tagId);
      monitor.worked(1);

    } finally {
      monitor.done();
    }
  }

  private void updateRepo(ObjectId tagId) throws TeamException {
    String refName = Constants.R_TAGS + tag.getTag();
View Full Code Here

        p.refreshLocal(IResource.DEPTH_INFINITE,
            new SubProgressMonitor(monitor, 100));
      }
    } finally {
      monitor.done();
    }
  }

  /* (non-Javadoc)
   * @see org.eclipse.egit.core.op.IEGitOperation#getSchedulingRule()
View Full Code Here

      } finally {
        findRepositoryMapping(repository).fireRepositoryChanged();
      }
    }

    monitor.done();
  }

  public ISchedulingRule getSchedulingRule() {
    return RuleUtil.getRuleForRepositories(pathsByRepository.keySet());
  }
View Full Code Here

      } catch (Exception e) {
        URIish uri = getPushURIForErrorHandling();
        handleException(uri, e, e.getMessage());
      }
    }
    monitor.done();
  }

  private void handleException(final URIish uri, Exception e,
      String userMessage) {
    String uriString;
View Full Code Here

                    + project);
          monitor.worked(60);
        }
      }
    } finally {
      monitor.done();
    }
  }

  private void autoIgnoreDerivedResources(IProject project,
      IProgressMonitor monitor) throws CoreException {
View Full Code Here

    } catch (GitAPIException e) {
      throw new CoreException(Activator.error(CoreText.AddToIndexOperation_failed, e));
    } finally {
      for (final RepositoryMapping rm : addCommands.keySet())
        rm.fireRepositoryChanged();
      monitor.done();
    }
  }

  /* (non-Javadoc)
   * @see org.eclipse.egit.core.op.IEGitOperation#getSchedulingRule()
View Full Code Here

        rm.fireRepositoryChanged();
      for (DirCache cache:caches.values())
        cache.unlock();
      caches.clear();
      mappings.clear();
      monitor.done();
    }
  }

  /* (non-Javadoc)
   * @see org.eclipse.egit.core.op.IEGitOperation#getSchedulingRule()
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.