@Override
 public void onExit() {
   running = false;
   if (thread != null && thread.isSleeping()) thread.interrupt();
   thread = null;
   logger.info("JDFeedMe has exited");
 }
  @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;
  }
 public static void syncNowEvent() {
   if (thread != null && thread.isSleeping()) thread.interrupt();
 }