Package org.eclipse.core.runtime.jobs

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


        return super.belongsTo(family);
      }
    };
    job.setUser(true);
    job.schedule();
    job.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(IJobChangeEvent event) {
        if (event.getResult().isOK())
          FetchResultDialog.show(repository, op.getOperationResult(),
              sourceString);
View Full Code Here


   * to synchronous mode before a filter is done.
   * @see org.eclipse.ui.dialogs.FilteredTree#doCreateRefreshJob()
   */
  protected WorkbenchJob doCreateRefreshJob() {
    WorkbenchJob filterJob = super.doCreateRefreshJob();
    filterJob.addJobChangeListener(new JobChangeAdapter() {
      public void done(IJobChangeEvent event) {
        if (event.getResult().isOK()) {
          getDisplay().asyncExec(new Runnable() {
            public void run() {
              if (checkboxViewer.getTree().isDisposed())
View Full Code Here

    }
    if (projects.isEmpty())
      return null;
    JobUtil.scheduleUserJob(new DisconnectProviderOperation(projects),
        UIText.Disconnect_disconnect,
        JobFamilies.DISCONNECT, new JobChangeAdapter() {
          @Override
          public void done(IJobChangeEvent actEvent) {
            GitLightweightDecorator.refresh();
          }
        });
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 super.belongsTo(family);
      }
    };
    job.setUser(true);
    job.schedule();
    job.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(IJobChangeEvent event) {
        PushOperationResult result = op.getOperationResult();
        if (expectedResult == null || !expectedResult.equals(result)) {
          if (event.getResult().isOK())
View Full Code Here

      .setOpenCommitEditor(openNewCommitsAction.isChecked())
      .setPushUpstream(pushUpstream);

    // don't allow to do anything as long as commit is in progress
    enableAllWidgets(false);
    commitJob.addJobChangeListener(new JobChangeAdapter() {
      @Override
      public void done(IJobChangeEvent event) {
        PlatformUI.getWorkbench().getDisplay()
            .asyncExec(new Runnable() {
              public void run() {
View Full Code Here

  void release() {
    if (getState() == Job.NONE)
      dispose();
    else
      addJobChangeListener(new JobChangeAdapter() {
        @Override
        public void done(final IJobChangeEvent event) {
          dispose();
        }
      });
View Full Code Here

    mgr.add(fillParagraphsPrefAction);

  }

  void addDoneListenerToFormatJob() {
    formatJob.addJobChangeListener(new JobChangeAdapter() {

      public void done(IJobChangeEvent event) {
        if (!event.getResult().isOK())
          return;
        final StyledText text = getTextWidget();
View Full Code Here

      @Override
      protected WorkbenchJob doCreateRefreshJob() {
        // workaround for file filter not having an explicit change
        // listener
        WorkbenchJob filterJob = super.doCreateRefreshJob();
        filterJob.addJobChangeListener(new JobChangeAdapter() {
          public void done(IJobChangeEvent event) {
            if (event.getResult().isOK()) {
              getDisplay().asyncExec(new Runnable() {
                public void run() {
                  updateFileSectionText();
View Full Code Here

        return super.belongsTo(family);
      }
    };

    if (dialog.shouldStartPushWizard()) {
      tagJob.addJobChangeListener(new JobChangeAdapter() {
        @Override
        public void done(IJobChangeEvent jobChangeEvent) {
          if (jobChangeEvent.getResult().isOK())
            PushTagsWizard.openWizardDialog(repo, tagName);
        }
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.