Examples of ProgressMonitor


Examples of org.cishell.framework.algorithm.ProgressMonitor

     * @param algorithm The algorithm to interrogate
     * @return Whether or not the algorithm is trackable
     */
    private boolean algorithmIsProgressTrackable(Algorithm algorithm) {
    if (algorithm != null) {
      ProgressMonitor monitor = ((ProgressTrackable) algorithm)
          .getProgressMonitor();
      if (monitor != null) {
        return true;
      }
    }
View Full Code Here

Examples of org.cishell.framework.algorithm.ProgressMonitor

    public void handleEvent(Event event) {
      TableItem item   = table.getItem(table.getSelectionIndex());
      if (item != null) {
        Algorithm algorithm = (Algorithm)tableItemToAlgorithmMap.get(item);
        if (algorithm instanceof ProgressTrackable) {
          ProgressMonitor monitor = ((ProgressTrackable)algorithm).getProgressMonitor();
          if (monitor != null) {
            monitor.setPaused(true);
            setEnabledMenuItems(algorithm);
          }
        }
      }
    }
View Full Code Here

Examples of org.cishell.framework.algorithm.ProgressMonitor

      TableItem item   = table.getItem(table.getSelectionIndex());
      if (item != null) {
        Algorithm algorithm = (Algorithm) tableItemToAlgorithmMap
            .get(item);
        if (algorithm instanceof ProgressTrackable) {
          ProgressMonitor monitor = ((ProgressTrackable) algorithm)
              .getProgressMonitor();
          if (monitor != null) {
            monitor.setCanceled(true);
            setEnabledMenuItems(algorithm);
          }
        }
      }
    }
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor

    // abort while the client is computing.
    //
    if (timeoutIn != null)
      timeoutIn.setTimeout(10 * timeout * 1000);

    ProgressMonitor receiving = NullProgressMonitor.INSTANCE;
    ProgressMonitor resolving = NullProgressMonitor.INSTANCE;
    if (sideBand)
      resolving = new SideBandProgressMonitor(msgOut);

    ObjectInserter ins = db.newObjectInserter();
    try {
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor

  private void executeCommands() {
    preReceive.onPreReceive(this, filterCommands(Result.NOT_ATTEMPTED));

    List<ReceiveCommand> toApply = filterCommands(Result.NOT_ATTEMPTED);
    ProgressMonitor updating = NullProgressMonitor.INSTANCE;
    if (sideBand) {
      SideBandProgressMonitor pm = new SideBandProgressMonitor(msgOut);
      pm.setDelayStart(250, TimeUnit.MILLISECONDS);
      updating = pm;
    }
    updating.beginTask(JGitText.get().updatingReferences, toApply.size());
    for (ReceiveCommand cmd : toApply) {
      updating.update(1);
      execute(cmd);
    }
    updating.endTask();
  }
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor

      return false;
    }
  }

  private void sendPack(final boolean sideband) throws IOException {
    ProgressMonitor pm = NullProgressMonitor.INSTANCE;
    OutputStream packOut = rawOut;
    SideBandOutputStream msgOut = null;

    if (sideband) {
      int bufsz = SideBandOutputStream.SMALL_BUF;
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor

        throw new CorruptObjectException(MessageFormat.format(
            JGitText.get().expectedEOFReceived,
            "\\x" + Integer.toHexString(eof)));
    }

    ProgressMonitor pm = NullProgressMonitor.INSTANCE;
    OutputStream packOut = rawOut;
    SideBandOutputStream msgOut = null;

    if (sideband) {
      int bufsz = SideBandOutputStream.SMALL_BUF;
View Full Code Here

Examples of org.eclipse.jgit.lib.ProgressMonitor

    // abort while the client is computing.
    //
    if (timeoutIn != null)
      timeoutIn.setTimeout(10 * timeout * 1000);

    ProgressMonitor receiving = NullProgressMonitor.INSTANCE;
    ProgressMonitor resolving = NullProgressMonitor.INSTANCE;
    if (sideBand)
      resolving = new SideBandProgressMonitor(msgOut);

    ObjectInserter ins = db.newObjectInserter();
    try {
View Full Code Here

Examples of org.eclipse.sapphire.modeling.ProgressMonitor

        };
    }
   
    public static ProgressMonitor create( final IProgressMonitor monitor )
    {
        return new ProgressMonitor()
        {
            @Override
            public void beginTask( final String name,
                                   final int totalWork )
            {
View Full Code Here

Examples of org.fusesource.hawtjni.generator.ProgressMonitor

        generator.setName(name);
        generator.setCopyright(copyright);
        generator.setNativeOutput(generatedNativeSourceDirectory);
        generator.setPackages(packages);
        generator.setCallbacks(callbacks);
        generator.setProgress(new ProgressMonitor() {
            public void step() {
            }
            public void setTotal(int total) {
            }
            public void setMessage(String message) {
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.