Examples of beginTask()


Examples of com.puppetlabs.geppetto.forge.v3.NullProgressMonitor.beginTask()

  public List<T> listAll(Query<T> query, SortBy<T> sortBy, boolean includeDeleted) throws IOException {
    ProgressMonitor monitor = new NullProgressMonitor();
    currentMonitor = monitor;
    try {
      PaginatedResult<T> page = list(query, sortBy, null, includeDeleted);
      monitor.beginTask(page.getTotal());

      int total = page.getTotal();
      if(total == 0)
        return Collections.emptyList();
View Full Code Here

Examples of com.puppetlabs.geppetto.forge.v3.ProgressMonitor.beginTask()

  public List<T> listAll(Query<T> query, SortBy<T> sortBy, boolean includeDeleted) throws IOException {
    ProgressMonitor monitor = new NullProgressMonitor();
    currentMonitor = monitor;
    try {
      PaginatedResult<T> page = list(query, sortBy, null, includeDeleted);
      monitor.beginTask(page.getTotal());

      int total = page.getTotal();
      if(total == 0)
        return Collections.emptyList();
View Full Code Here

Examples of org.apache.directory.studio.common.core.jobs.StudioProgressMonitor.beginTask()

                {
                    // Creating a StudioProgressMonitor
                    StudioProgressMonitor spm = new StudioProgressMonitor( monitor );

                    // Setting the title
                    spm.beginTask( Messages.getString( "NewServerWizard.CreatingLdapServer" ), IProgressMonitor.UNKNOWN ); //$NON-NLS-1$
                    spm.subTask( Messages.getString( "NewServerWizard.CreatingServerFolder" ) ); //$NON-NLS-1$

                    // Adding the new server to the servers handler
                    LdapServersManager.getDefault().addServer( server );
View Full Code Here

Examples of org.chromium.debug.core.util.ProgressUtil.MonitorWrapper.beginTask()

  private IStatus execute(IProgressMonitor monitor) {
    ConnectedTargetData connectedTargetData = workspaceBridge.getConnectedTargetData();

    MonitorWrapper monitorWrapper = new MonitorWrapper(monitor, ""); //$NON-NLS-1$

    monitorWrapper.beginTask();
    try {
      WorkPlan.PREINIT.start(monitorWrapper);
      // Nothing here right now.
      WorkPlan.PREINIT.finish(monitorWrapper);
      checkIsCanceled(monitorWrapper);
View Full Code Here

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

        } catch (CoreException e) {
        }*/
       
        try {
          final IProgressMonitor fMonitor = monitor;
          fMonitor.beginTask("Validating resources", IProgressMonitor.UNKNOWN);
          fResource.accept(new IResourceVisitor() {
           
            public boolean visit(IResource resource) throws CoreException {
              if (resource instanceof IFile) {
                IFile file = (IFile) resource;
View Full Code Here

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

            initLabels();
            Differencer differencer = new Differencer();
            monitor.beginTask("Bytecode Outline: comparing...", 30); //$NON-NLS-1$
            IProgressMonitor sub = new SubProgressMonitor(monitor, 10);
            try {
                sub.beginTask("Bytecode Outline: comparing...", 100); //$NON-NLS-1$

                return differencer.findDifferences(
                    false, sub, null, null, left, right);
            } finally {
                sub.done();
View Full Code Here

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

    public void run(final File[] exportFiles, final DocumentManager.FTPOptions options, UIFacade uiFacade) {
        IJobManager jobManager = Platform.getJobManager();
        IProgressMonitor monitor = jobManager.createProgressGroup();
          Job startingJob = new Job("starting") {
        protected IStatus run(IProgressMonitor monitor) {
          monitor.beginTask("Publishing files on FTP", exportFiles.length);
          try{
                final URL baseUrl = buildURL(options);
                if (baseUrl==null) {
                  throw new RuntimeException("Failed to discover your FTP settings. Please make sure that you specified server name and user name");
                }
View Full Code Here

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

            IProgressMonitor subProgress = null;
            try {
              int totalWork = 1000;
              if (progress != null) {
                subProgress = new SubProgressMonitor(progress, concurrentJobWork * 8 / 10);
                subProgress.beginTask("", totalWork); //$NON-NLS-1$
                concurrentJobWork = concurrentJobWork * 2 / 10;
              }
              // use local variable to avoid potential NPE (see bug 20435 NPE when searching java method
              // and bug 42760 NullPointerException in JobManager when searching)
              Thread t = this.processingThread;
View Full Code Here

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

        IProgressMonitor monitorInternal = monitor;
        if (monitorInternal == null) {
            monitorInternal = new NullProgressMonitor();
        }

        monitorInternal.beginTask(NewWizardMessages.NewTypeWizardPage_operationdesc, 8);

        IPackageFragmentRoot root = getPackageFragmentRoot();
        IPackageFragment pack = getPackageFragment();
        if (pack == null) {
            pack = root.getPackageFragment(""); //$NON-NLS-1$
View Full Code Here

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

                @Override
                public void run(final IProgressMonitor monitor0) {
                    final IProgressMonitor monitor = monitor0 != null ? monitor0
                            : new NullProgressMonitor();
                    try {
                        monitor.beginTask("Processing "
                                + textEditor.getEditorInput().getName(),
                                IProgressMonitor.UNKNOWN);
                        doAction(sel, textEditor);
                    } finally {
                        monitor.done();
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.