Package org.eclipse.core.runtime

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


                projectInfo.getFileList(), projectID, skipSyncs.get(projectID)
                    .booleanValue(), vcs, lMonitor.newChild(30));
            requiredFiles.setProjectID(projectID);
            checkCancellation();
            missingFiles.add(requiredFiles);
            lMonitor.done();
        }
        return missingFiles;
    }

    /**
 
View Full Code Here


                            }
                        });
                    } catch (InterruptedException e) {
                        log.error("Code not designed to be interruptable", e); //$NON-NLS-1$
                    } finally {
                        progress.done();
                    }
                }
            });
        } catch (InvocationTargetException e) {
            log.error("Internal Error: ", e); //$NON-NLS-1$
View Full Code Here

            } catch (SarosCancellationException e) {
                monitor.subTask(Messages.SendFileAction_monitor_canceled_text);
                return Status.CANCEL_STATUS;
            } finally {
                readyToStop.countDown();
                monitor.done();
            }

            monitor.setTaskName(sendSuccessfully ? Messages.SendFileAction_monitor_successful_sent_text
                : Messages.SendFileAction_monitor_not_sent_whole_file_text);
            return sendSuccessfully ? Status.OK_STATUS : Status.CANCEL_STATUS;
View Full Code Here

            } finally {
                if (!stopped && streamException == null)
                    getStreamSession().stopSession();
                readyToStop.countDown();
                monitor.done();
            }

            monitor
                .setTaskName(receivedSuccessfully ? Messages.SendFileAction_monitor_successful_received_file_text
                    : Messages.SendFileAction_monitor_could_not_receive_whole_file_text);
View Full Code Here

    buildMonitor.worked(10);
    try {
      compilerProcess = builder.start();
    } catch (IOException e1) {
      e1.printStackTrace();
      buildMonitor.done();
      throw new CoreException(new ResourceStatus(ResourceStatus.BUILD_FAILED, "Compilation of " + prj.getName() + " failed due to the following exception: " + e1.getMessage()));
    }
    CompilerConsoleHandler.dumpBuildMessages(compilerProcess.getInputStream());
   
    try {
View Full Code Here

    } catch (InterruptedException e) {
      e.printStackTrace();
    }
    finally{
      buildMonitor.worked(60);
      buildMonitor.done();
    }
   
    if(compilerProcess.exitValue() != 0)
      //throw new CoreException(new Status(Status.ERROR, XVRPlugin.PLUGIN_ID, "Compilation of " + prj.getName() + "failed and returns with code : " + compilerProcess.exitValue()));
      throw new CoreException(new ResourceStatus(ResourceStatus.BUILD_FAILED, "Compilation of " + prj.getName() + " failed and returns with code : " + compilerProcess.exitValue()));
View Full Code Here

  @Override
  protected IResourceVariant fetchVariant(IResource resource, int depth,
      IProgressMonitor monitor) throws TeamException {
    SubMonitor subMonitor = SubMonitor.convert(monitor);
    if (resource == null || isNonWorkspace(resource)) {
      subMonitor.done();
      return null;
    }

    subMonitor.beginTask(NLS.bind(
        CoreText.GitResourceVariantTree_fetchingVariant,
View Full Code Here

        CoreText.GitResourceVariantTree_fetchingVariant,
        resource.getName()), IProgressMonitor.UNKNOWN);
    try {
      return fetchVariant(resource);
    } finally {
      subMonitor.done();
    }
  }

  private IResourceVariant fetchVariant(IResource resource) {
    if (gitCache == null)
View Full Code Here

      GitSyncCache partialCache = getAllData(entry.getKey(), paths);
      cache.merge(partialCache, new HashSet<String>(paths));
      m.worked(1);
    }

    m.done();
  }

  private static GitSyncCache getAllData(GitSynchronizeData gsd,
      Collection<String> paths) {
    GitSyncCache cache = new GitSyncCache();
View Full Code Here

        Activator.getDefault().logError("Failed to create large blocksize marker file", e); //$NON-NLS-1$
      }
    }

    /* Finished */
    monitor.done();
    Activator.safeLogInfo("Finished: Database Defragmentation"); //$NON-NLS-1$
  }

  /**
   * Internal method. Made public for testing. Creates a copy of the database
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.