Examples of worked()


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

      readMemory(application, workingCopy);
      subMonitor.worked(1);

      readApplicationURL(application, workingCopy, appName, monitor);
      subMonitor.worked(1);

      String buildpackurl = getStringValue(application, BUILDPACK_PROP);
      if (buildpackurl != null) {
        Staging staging = new Staging(null, buildpackurl);
        workingCopy.setStaging(staging);
View Full Code Here

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

        Staging staging = new Staging(null, buildpackurl);
        workingCopy.setStaging(staging);
      }

      readEnvars(workingCopy, application);
      subMonitor.worked(1);

      readServices(workingCopy, application);
      subMonitor.worked(1);

      String archiveURL = getStringValue(application, PATH_PROP);
View Full Code Here

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

      readEnvars(workingCopy, application);
      subMonitor.worked(1);

      readServices(workingCopy, application);
      subMonitor.worked(1);

      String archiveURL = getStringValue(application, PATH_PROP);
      if (archiveURL != null) {
        workingCopy.setArchive(archiveURL);
      }
View Full Code Here

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

      }
      Diagnostic diagnostic = location.resolve(metadataRepositoryManager, subMonitor);
      if (diagnostic.getSeverity() >= Diagnostic.WARNING) {
        ret.merge(diagnostic);
      }
      subMonitor.worked(1);
    }
    return ret;
  }
 
  public static ResolvedTargetPlatform create(TargetPlatform targetPlatform, LocationIndexBuilder indexBuilder) throws URISyntaxException {
View Full Code Here

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

    BasicDiagnostic ret = new BasicDiagnostic();
    SubMonitor subMonitor = SubMonitor.convert(monitor, 100);
   
    try {
      Resource resource = loadTargetPlatform(uri);
      subMonitor.worked(2);
     
      Diagnostic resourceDiagnostic = EcoreUtil.computeDiagnostic(resource, true);
      if (resourceDiagnostic.getSeverity() >= Diagnostic.WARNING) {
        ret.merge(resourceDiagnostic);
      }
View Full Code Here

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

    SubMonitor subMonitor = SubMonitor.convert(monitor, 100);
   
    try {
      IMetadataRepositoryManager repositoryManager = (IMetadataRepositoryManager) agent.getService(IMetadataRepositoryManager.SERVICE_NAME);
      ResolvedTargetPlatform resolvedTargetPlatform = ResolvedTargetPlatform.create(targetPlatform, indexBuilder);
      subMonitor.worked(5);
     
      if (subMonitor.isCanceled()) {
        ret.merge(Diagnostic.CANCEL_INSTANCE);
      } else {
        Diagnostic diagnostic = resolvedTargetPlatform.resolve(repositoryManager, subMonitor.newChild(90));
View Full Code Here

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

        } else if (ret.getSeverity() < Diagnostic.ERROR) {
          diagnostic = doGenerateTargetDefinitionFile(uri, resolvedTargetPlatform);
          if (diagnostic.getSeverity() >= Diagnostic.WARNING) {
            ret.merge(diagnostic);
          }
          subMonitor.worked(5);
        }
      }
    } catch (Exception e) {
      ret.merge(BasicDiagnostic.toDiagnostic(e));
    }
View Full Code Here

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

      BUFFER = new byte[8192];
    SubMonitor progress = SubMonitor.convert(monitor, size);
    int r = in.read(BUFFER);
    while (r >= 0) {
      out.write(BUFFER, 0, r);
      progress.worked(r);
      r = in.read(BUFFER);
    }
  }

  private void download(InputStream in, OutputStream out, IProgressMonitor monitor, String name, int size) throws IOException {
View Full Code Here

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

      total += r;
      if (total >= lastTotal + 8192) {
        lastTotal = total;
        progress.subTask(NLS.bind(msg, Integer.toString(lastTotal / 1024)));
      }
      progress.worked(r);
      // if size is not known, use infinite logarithmic progress
      if (size <= 0)
        progress.setWorkRemaining(DEFAULT_DOWNLOAD_SIZE);
     
      if (progress.isCanceled())
View Full Code Here

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

        int port= SocketUtil.findFreePort();
        if (port == -1) {
            abort(LaunchingMessages.StandardVMDebugger_Could_not_find_a_free_socket_for_the_debugger_1, null, IJavaLaunchConfigurationConstants.ERR_NO_SOCKET_AVAILABLE);
        }

        subMonitor.worked(1);

        // check for cancellation
        if (monitor.isCanceled()) {
            return;
        }
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.