Package org.eclipse.core.runtime.jobs

Examples of org.eclipse.core.runtime.jobs.JobChangeAdapter


          return Status.OK_STATUS;
        }
      };
      job.setUser(true);
      job.setRule(op.getSchedulingRule());
      job.addJobChangeListener(new JobChangeAdapter() {
        @Override
        public void done(IJobChangeEvent cevent) {
          IStatus result = cevent.getJob().getResult();
          if (result.getSeverity() == IStatus.CANCEL)
            Display.getDefault().asyncExec(new Runnable() {
View Full Code Here


    if (cleanupUncomittedChangesDialog.shouldContinue()) {
      final PullOperationUI parentOperation = this;
      final PullOperationUI pullOperationUI = new PullOperationUI(
          Collections.singleton(repository));
      tasksToWaitFor.incrementAndGet();
      pullOperationUI.start(new JobChangeAdapter() {

        @Override
        public void done(IJobChangeEvent event) {
          // put the result from this subtask into the result map of
          // the outer PullOperationUI and display the results if all
View Full Code Here

    job.setUser(true);
    // Set scheduling rule to workspace because we may have to re-create
    // projects using BranchProjectTracker.
    if (restore)
      job.setRule(ResourcesPlugin.getWorkspace().getRoot());
    job.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(IJobChangeEvent cevent) {
        show(bop.getResult());
      }
    });
View Full Code Here

      /*
       * Overridden to check page when refreshing is done.
       */
      protected WorkbenchJob doCreateRefreshJob() {
        WorkbenchJob refreshJob = super.doCreateRefreshJob();
        refreshJob.addJobChangeListener(new JobChangeAdapter() {
          public void done(IJobChangeEvent event) {
            if (event.getResult().isOK()) {
              getDisplay().asyncExec(new Runnable() {
                public void run() {
                  checkPage();
View Full Code Here

        return Status.OK_STATUS;
      }
    };
    job.setUser(true);
    job.setRule(op.getSchedulingRule());
    job.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(IJobChangeEvent jobEvent) {
        IStatus result = jobEvent.getJob().getResult();
        if (result.getSeverity() == IStatus.CANCEL)
          Display.getDefault().asyncExec(new Runnable() {
View Full Code Here

        return Status.OK_STATUS;
      }
    };
    job.setUser(true);
    job.setRule(op.getSchedulingRule());
    job.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(IJobChangeEvent cevent) {
        IStatus result = cevent.getJob().getResult();
        if (result.getSeverity() == IStatus.CANCEL)
          Display.getDefault().asyncExec(new Runnable() {
View Full Code Here

        this.projectName = projectName;
        init();
    }

    private void init() {
        this.addJobChangeListener(new JobChangeAdapter() {
            @Override
            public void done(IJobChangeEvent event) {
                if (!event.getResult().isOK()) {
                    logger.error("Unable to pre-fetch sobjects");
                }
View Full Code Here

      /* Create the Job */
      Job job = createJob();

      /* Listen to Job's Lifecycle */
      job.addJobChangeListener(new JobChangeAdapter() {

        /* Update Fields when a Job is Done */
        @Override
        public void done(IJobChangeEvent event) {
          fDone.incrementAndGet();
View Full Code Here

    /* Create the Job */
    Job job = createTaskJob();

    /* Listen to Job's Lifecycle */
    job.addJobChangeListener(new JobChangeAdapter() {

      /* Update Fields when a Job is Done */
      @Override
      public void done(IJobChangeEvent event) {

View Full Code Here

      /* Create the Job */
      Job job = createJob();

      /* Listen to Job's Lifecycle */
      job.addJobChangeListener(new JobChangeAdapter() {

        /* Update Fields when a Job is Done */
        @Override
        public void done(IJobChangeEvent event) {

View Full Code Here

TOP

Related Classes of org.eclipse.core.runtime.jobs.JobChangeAdapter

Copyright © 2018 www.massapicom. 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.