Ejemplo n.º 1
0
 @Override
 public void onExit() {
   running = false;
   if (thread != null && thread.isSleeping()) thread.interrupt();
   thread = null;
   logger.info("JDFeedMe has exited");
 }
Ejemplo n.º 2
0
  @Override
  public boolean initAddon() {
    showAction = new MenuAction("feedme", 0);

    showAction.setActionListener(this);

    /* CODE_FOR_INTERFACE_5_START
    showAction.setTitle("JD FeedMe");
    CODE_FOR_INTERFACE_5_END */
    /* CODE_FOR_INTERFACE_7_START */
    showAction.putValue(javax.swing.Action.NAME, "JD FeedMe");
    /* CODE_FOR_INTERFACE_7_END */

    showAction.setIcon(this.getIconKey());
    showAction.setSelected(false);

    logger.info("JDFeedMe is running");
    running = true;
    thread = new JDFeedMeThread();
    thread.start();
    return true;
  }
Ejemplo n.º 3
0
 public static void syncNowEvent() {
   if (thread != null && thread.isSleeping()) thread.interrupt();
 }