Examples of beginTask()


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

     */
    public List<IResolve> members( IProgressMonitor monitor2 ) {
        IProgressMonitor monitor = monitor2;
        if (monitor == null)
            monitor = new NullProgressMonitor();
        monitor.beginTask(Messages.CatalogImpl_finding, 1);
        monitor.done();
        return new LinkedList<IResolve>(services);
    }

    public String getTitle() {
View Full Code Here

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

        try {
            List<IService> possible = factory.createService(url);
            monitor.worked(urlProcessCount);

            IProgressMonitor monitor3 = new SubProgressMonitor(monitor, 60);
            monitor3.beginTask("connect", possible.size() * 10);

            for( Iterator<IService> iterator = possible.iterator(); iterator.hasNext(); ) {
                IService service = iterator.next();

                if (service == null) continue;
View Full Code Here

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

    DiagramEditPart part = editor.getDiagramEditPart();
   
    // save this image
    // (even if there isn't anything in it)
    IProgressMonitor saveMonitor = new SubProgressMonitor(monitor, 2);
    saveMonitor.beginTask("Saving image for " + cls.getName(), 2);
   
    // issue 193: first save as png
    {
      IPath destination = generateImageDestination(cls, ".png");
      monitor.subTask("Saving PNG image " + destination.lastSegment());
View Full Code Here

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

    DiagramEditPart part = editor.getDiagramEditPart();
   
    // save this image if there is something in it
    if (part.getChildren().size() > 0) {
      IProgressMonitor saveMonitor = new SubProgressMonitor(monitor, 1);
      saveMonitor.beginTask("Saving container " + part.resolveSemanticElement(), 1 + formats.size());
      for (ImageFileFormat format : formats) {
        IPath destination = generateImageDestination(container, format);
        monitor.subTask("Saving image " + destination.lastSegment() + " ( " + format.getName() + ")");
        CopyToImageUtil img = getCopyToImageUtil();
        img.copyToImage(part, destination, format, new SubProgressMonitor(monitor, 1));
View Full Code Here

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

   
    // do parent
    super.doExport(targetDiagram, container, new SubProgressMonitor(monitor, 70));
   
    IProgressMonitor finalMonitor = new SubProgressMonitor(monitor, 30);
    finalMonitor.beginTask("Writing HTML files", partDestinationMap.size() * 2);
   
    // get all image parts
    for (DiagramEditPart root : partDestinationMap.keySet()) {
      if (monitor.isCanceled())
        return;
View Full Code Here

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

        selectionChanged();
        if (getUserInput()) {
            final IProgressMonitor monitor = new NullProgressMonitor();
            try {
                IResultParser result;
                monitor.beginTask("Detecting..", 0);

                result = callRefactoring();
                if (result.isSuccessful()) {
                    showDuplicatesView();
                    addDuplicates(result.getDuplicates());
View Full Code Here

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

      /*
       * This should not be needed, but things don't work properly when it's not
       * called.
       */
      monitor.beginTask(monitorText, DEFRAG_TOTAL_WORK);
    } else {
      monitor = subMonitor.newChild(10);
      monitor.setWorkRemaining(100);
    }

View Full Code Here

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

   * @throws CoreException if error occurred while loading an existing
   * manifest file.
   */
  public DeploymentInfoWorkingCopy load(IProgressMonitor monitor) throws CoreException {
    SubMonitor subMonitor = SubMonitor.convert(monitor);
    subMonitor.beginTask("Parsing and loading application manifest file", 6); //$NON-NLS-1$
    DeploymentInfoWorkingCopy workingCopy;
    try {
      workingCopy = appModule.resolveDeploymentInfoWorkingCopy(subMonitor);

      Map<?, ?> application = getApplication(null);
View Full Code Here

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

  }

  public static CloudFoundryOperations createExternalClientLogin(final String location, String userName,
      String password, boolean selfSigned, IProgressMonitor monitor) throws CoreException {
    SubMonitor progress = SubMonitor.convert(monitor);
    progress.beginTask("Connecting", IProgressMonitor.UNKNOWN); //$NON-NLS-1$
    try {
      final CloudFoundryOperations client = createClient(location, userName, password, selfSigned);

      new ClientRequest<Void>(Messages.VALIDATING_CREDENTIALS) {
View Full Code Here

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

  }

  public static void register(String location, String userName, String password, boolean selfSigned,
      IProgressMonitor monitor) throws CoreException {
    SubMonitor progress = SubMonitor.convert(monitor);
    progress.beginTask("Connecting", IProgressMonitor.UNKNOWN); //$NON-NLS-1$
    try {
      CloudFoundryOperations client = createClient(location, userName, password, selfSigned);
      client.register(userName, password);
    }
    catch (RestClientException e) {
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.