Package org.eclipse.core.runtime.jobs

Examples of org.eclipse.core.runtime.jobs.IJobManager.cancel()


      }
      public void setCanceled(boolean value) {
        monitor.setCanceled(value);
        if (value) {
          System.err.println("ExporterBase: canceling value="+EXPORT_JOB_FAMILY);
          jobManager.cancel(EXPORT_JOB_FAMILY);
        }
      }
      public void setTaskName(String name) {
        monitor.setTaskName(name);
      }
View Full Code Here


        IJobManager jobMan = Platform.getJobManager();
        Job[] jobs = jobMan.find(PerlBuilderJob.JOB_FAMILY);

        if (jobs.length == 0) return; // no previous build found
       
        jobMan.cancel(PerlBuilderJob.JOB_FAMILY);
        try { jobMan.join(PerlBuilderJob.JOB_FAMILY, null); }
        catch (InterruptedException e)
        {
            // nobody should interrupt our thread in this state;
            // if they do anyway, we treat is as a build cancellation
View Full Code Here

   */
  public void selectionChanged(final ITextSelection selection) {

    IJobManager jobManager = Job.getJobManager();
    if (jobManager.find(PHPUiPlugin.OPEN_CALL_HIERARCHY_ACTION_FAMILY_NAME).length > 0) {
      jobManager
          .cancel(PHPUiPlugin.OPEN_CALL_HIERARCHY_ACTION_FAMILY_NAME);
    }

    Job job = new Job(PHPUiPlugin.OPEN_CALL_HIERARCHY_ACTION_FAMILY_NAME) {

View Full Code Here

   */
  public void selectionChanged(final ITextSelection selection) {

    IJobManager jobManager = Job.getJobManager();
    if (jobManager.find(PHPUiPlugin.OPEN_TYPE_HIERARCHY_ACTION_FAMILY_NAME).length > 0) {
      jobManager
          .cancel(PHPUiPlugin.OPEN_TYPE_HIERARCHY_ACTION_FAMILY_NAME);
    }

    Job job = new Job(PHPUiPlugin.OPEN_TYPE_HIERARCHY_ACTION_FAMILY_NAME) {
      @Override
View Full Code Here

    String updatingOccurencesJobName = "Updating occurence annotations"; //$NON-NLS-1$

    IJobManager jobManager = Job.getJobManager();
    if (jobManager.find(updatingOccurencesJobName).length > 0) {
      jobManager.cancel(updatingOccurencesJobName);
    }
    Job job = new Job(updatingOccurencesJobName) {

      @Override
      protected IStatus run(IProgressMonitor monitor) {
View Full Code Here

     * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext )
     */
    @Override
    public void stop(BundleContext context) throws Exception {
  IJobManager jobMan = Job.getJobManager();
  jobMan.cancel(FamilyJob.MY_FAMILY);
  jobMan.join(FamilyJob.MY_FAMILY, null);
  plugin = null;
  super.stop(context);
    }

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.