Package org.eclipse.core.runtime.jobs

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


        // in case processing thread is handling a job
        thread.join();
      }
      Job job = this.progressJob;
      if (job != null) {
        job.cancel();
        job.join();
      }
    } catch (InterruptedException e) {
      // ignore
    }
View Full Code Here


    void executeAnalysis() {
        outOfDate = false;
        synchronized (this) {
            Job oldJob = analysisJob;
            if (oldJob != null && oldJob.getState() != Job.NONE)
                oldJob.cancel();

            if (selectedFiles != null) {
                final AnalyseBundleResolutionJob tmp = new AnalyseBundleResolutionJob("importExportAnalysis", selectedFiles);
                tmp.setSystem(true);
View Full Code Here

      // don't chain up jobs if there is one waiting already.
      if (oldJob.getState() == Job.WAITING) {
        oldJob.wakeUp(INITIALIZE_DELAY);
        return;
      }
      oldJob.cancel();
    }

    fInitializationJob= new Job(QuickDiffMessages.quickdiff_initialize) {

      /*
 
View Full Code Here

   * Uninstalls all components and dereferences any objects.
   */
  private void uninstall() {
    Job job= fInitializationJob;
    if (job != null)
      job.cancel();

    synchronized (this) {
      fState= SUSPENDED;
      fIgnoreDocumentEvents= true;
      fInitializationJob= null;
View Full Code Here

   * @see org.eclipse.ui.internal.texteditor.quickdiff.ILineDifferExtension#suspend()
   */
  public void suspend() {
    Job job= fInitializationJob;
    if (job != null)
      job.cancel();
   
    synchronized (this) {
      fInitializationJob= null;
      if (fRightDocument != null)
        fRightDocument.removeDocumentListener(this);
View Full Code Here

                        break;
                    }
                }
                return status;
            } finally {
                monitorUpdateJob.cancel();
            }
        } finally {
            progressMonitor.done();
        }
    }
View Full Code Here

      // don't chain up jobs if there is one waiting already.
      if (oldJob.getState() == Job.WAITING) {
        oldJob.wakeUp(INITIALIZE_DELAY);
        return;
      }
      oldJob.cancel();
    }

    fInitializationJob= new Job(QuickDiffMessages.quickdiff_initialize) {

      /*
 
View Full Code Here

   * Uninstalls all components and dereferences any objects.
   */
  private void uninstall() {
    Job job= fInitializationJob;
    if (job != null)
      job.cancel();

    synchronized (this) {
      fState= SUSPENDED;
      fIgnoreDocumentEvents= true;
      fInitializationJob= null;
View Full Code Here

   * @see org.eclipse.ui.internal.texteditor.quickdiff.ILineDifferExtension#suspend()
   */
  public void suspend() {
    Job job= fInitializationJob;
    if (job != null)
      job.cancel();

    synchronized (this) {
      fInitializationJob= null;
      if (fRightDocument != null)
        fRightDocument.removeDocumentListener(this);
View Full Code Here

        // in case processing thread is handling a job
        thread.join();
      }
      Job job = this.progressJob;
      if (job != null) {
        job.cancel();
        job.join();
      }
    } catch (InterruptedException e) {
      // ignore
    }
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.