Package org.eclipse.ui.progress

Examples of org.eclipse.ui.progress.IWorkbenchSiteProgressService.schedule()


    UIJob job = getUIJob();

    IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) editorPage.getEditorSite().getService(
        IWorkbenchSiteProgressService.class);
    if (service != null) {
      service.schedule(job, 0L, true);
    }
    else {
      job.schedule();
    }
View Full Code Here


  protected void runJob(Job job) {
    IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) editorPage.getEditorSite().getService(
        IWorkbenchSiteProgressService.class);
    if (service != null) {
      service.schedule(job, 0L, true);
    }
    else {
      job.schedule();
    }
  }
View Full Code Here

    if (fSelection != null && !fSelection.isEmpty()) {
      Job job = getJob();
      if (job != null) {
        IWorkbenchSiteProgressService progressService = getActiveProgressService();
        if (progressService != null) {
          progressService.schedule(job);
        }
        else {
          job.schedule();
        }
      }
View Full Code Here

    if (fSelection != null && !fSelection.isEmpty()) {
      Job job = getJob();
      if (job != null) {
        IWorkbenchSiteProgressService progressService = getActiveProgressService();
        if (progressService != null) {
          progressService.schedule(job);
        }
        else {
          job.schedule();
        }
      }
View Full Code Here

      return;
   
    IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService)
        getSite().getService(IWorkbenchSiteProgressService.class);
   
    service.schedule(job);
  }
 
  /**
   * Updates the pages to current preference.
   */
 
View Full Code Here

            Job job = new ClearMarkersJob(file, Arrays.asList(new WorkItem[] { new WorkItem(file) }));
            job.setUser(true);
            job.setPriority(Job.INTERACTIVE);
            IWorkbenchSiteProgressService service = (IWorkbenchSiteProgressService) currentEditor.getEditorSite().getService(
                    IWorkbenchSiteProgressService.class);
            service.schedule(job);
        }
    }
}
View Full Code Here

    if (trace)
      GitTraceLocation.getTrace().trace(
          GitTraceLocation.REPOSITORIESVIEW.getLocation(),
          "Scheduling refresh job"); //$NON-NLS-1$
    service.schedule(job, delay);

    scheduledJob = job;
    return scheduledJob;
  }
View Full Code Here

      }
    });

    IWorkbenchSiteProgressService service = CommonUtils.getService(getSite(), IWorkbenchSiteProgressService.class);
    if (service != null)
      service.schedule(commitJob, 0, true);
    else
      commitJob.schedule();

    CommitMessageHistory.saveCommitHistory(commitMessage);
    clearCommitMessageToggles();
View Full Code Here

    FormatJob.FormatRequest formatRequest = new FormatJob.FormatRequest(
        getRepository(), commit, fill, SYS_LINKCOLOR, SYS_DARKGRAY,
        allRefs);
    formatJob = new FormatJob(formatRequest);
    addDoneListenerToFormatJob();
    siteService.schedule(formatJob, 0 /* now */, true /*
                             * use the half-busy
                             * cursor in the part
                             */);
  }

 
View Full Code Here

    if (site != null) {
      final IWorkbenchSiteProgressService p;
      p = (IWorkbenchSiteProgressService) site
          .getAdapter(IWorkbenchSiteProgressService.class);
      if (p != null) {
        p.schedule(j, 0, true /* use half-busy cursor */);
        return;
      }
    }
    j.schedule();
  }
 
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.