Examples of cancel()


Examples of com.intellij.openapi.progress.ProgressIndicator.cancel()

            }
        );
    Disposer.register(popup, new Disposable() {
      @Override
      public void dispose() {
        indicator.cancel();
      }
    });
  }

  @NotNull
View Full Code Here

Examples of com.intellij.openapi.ui.popup.JBPopup.cancel()

                      if (visibleNodes.isEmpty()) {
                        if (usages.isEmpty()) {
                          String text = UsageViewBundle.message("no.usages.found.in",
                              searchScopePresentableName(options, project));
                          showHint(text, editor, popupPosition, handler, maxUsages, options);
                          popup.cancel();
                        } else {
                          // all usages filtered out
                        }
                      } else if (visibleNodes.size() == 1) {
                        if (usages.size() == 1) {
View Full Code Here

Examples of com.jboss.transaction.txinterop.webservices.bainterop.generated.ParticipantPortType.cancel()

    {
        addressingProperties.setReplyTo(initiator) ;
        ParticipantPortType port = BAInteropClient.getParticipantPort(addressingProperties, cancelAction);
        CoordinationContextManager.setThreadContext(coordinationContext) ;
        try {
            port.cancel();
        } finally {
            CoordinationContextManager.setThreadContext(null) ;
        }
    }
   
View Full Code Here

Examples of com.l2jfrozen.gameserver.model.quest.QuestTimer.cancel()

        }

        Object[] characters = result.toArray();
        QuestTimer timer = getQuestTimer("clean_player", npc, null);
        if (timer != null)
            timer.cancel();
        startQuestTimer("clean_player", 20000, npc, null);
        L2Character target = (L2Character) characters[Rnd.get(characters.length)];
        FastList.recycle(result);
        return target;
View Full Code Here

Examples of com.linkedin.parseq.Cancellable.cancel()

      public void onResolved(Promise<Object> resolvedPromise)
      {
        for (Iterator<Cancellable> it = _cancellables.iterator(); it.hasNext(); )
        {
          final Cancellable cancellable = it.next();
          cancellable.cancel(EARLY_FINISH_EXCEPTION);
          it.remove();
        }
      }
    });
View Full Code Here

Examples of com.linkedin.r2.util.Cancellable.cancel()

      callback.addTimeoutTask(new Runnable()
      {
        @Override
        public void run()
        {
          pendingGet.cancel();
        }
      });
    }
  }
View Full Code Here

Examples of com.opengamma.util.async.Cancelable.cancel()

    Cancelable job = jobDispatcher.dispatchJob(createTestJob(), result);
    assertNotNull(job);
    assertNull(result.getResult());
    final BlockingJobInvoker blockingInvoker = new BlockingJobInvoker(TIMEOUT);
    jobDispatcher.registerJobInvoker(blockingInvoker);
    assertTrue (job.cancel (false));
    assertTrue (blockingInvoker.isCancelled ());
  }

}
View Full Code Here

Examples of com.ourlinc.helloworld.model.Activity.cancel()

    Activity act = m_ActivityService.getActivity(actId);
    if (null == act) {
      request.setAttribute("errorMsg", "找不到id=" + actId + "的活动");
      return "error";
    }
    act.cancel();
    act.flush();
    response.sendRedirect("sendemail.jspx?op=cancel&actId="
        + Misc.encodeUrl(act.getId()));
    return null;
  }
View Full Code Here

Examples of com.puppetlabs.geppetto.forge.v3.ProgressMonitor.cancel()

  @Override
  public void abortCurrentRequest() {
    ProgressMonitor monitor = currentMonitor;
    if(monitor != null)
      monitor.cancel();
    client.abortCurrentRequest();
  }

  /* (non-Javadoc)
   * @see com.puppetlabs.geppetto.forge.v3.ForgeService#accept(com.puppetlabs.geppetto.forge.v3.AbstractForgeService.Query, com.puppetlabs.geppetto.forge.v3.AbstractForgeService.SortBy, boolean, com.puppetlabs.geppetto.forge.v3.AbstractForgeService.Visitor, com.puppetlabs.geppetto.forge.v3.AbstractForgeService.ProgressMonitor)
View Full Code Here

Examples of com.sleepycat.je.rep.utilint.ServiceDispatcher.cancel()

            }
            LoggerUtils.logMsg(logger, envImpl, formatter, Level.WARNING,
                               "Acceptor unexpected interrupted");
            throw EnvironmentFailureException.unexpectedException(e);
        } finally {
            serviceDispatcher.cancel(SERVICE_NAME);
            cleanup();
        }
    }

    /**
 
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.