Ejemplo n.º 1
0
 private void killUI() {
   if (ui != null) {
     ui.shutdown();
   }
   printer = PLAIN_PRINTER;
   ui = null;
   printer.println("UI Shutdown.");
 }
  @Override
  public synchronized void shutdown() {
    if (tray != null && ti != null) {
      ti.displayMessage(
          "", Language.getLocalizedString(getClass(), "shutting"), TrayIcon.MessageType.NONE);
      balloonClickHandler = null;
    }

    if (ui != null) {
      ui.shutdown();
      ui = null;
    }
    if (core != null) {
      core.shutdown();
      core = null;
    }
    if (tray != null) {
      tray.remove(ti);
    }
    System.exit(0);
  }