super.getLogger().info(
StringUtils.format("STATUS CHANGED: {0} {1} support tray icon",
this.getClass().getSimpleName(),
_traySupported?"":"does not"));
final BeeEvent event = new BeeEvent(this,
_traySupported ? BeeEvents.ON_OK : BeeEvents.ON_NO);
_listener.onEvent(event);
}
Thread.sleep(SLEEP);
}
} catch (InterruptedException iex) {
// no event for standard interrupted exception
_interrupted = true;
} catch (Throwable t) {
_interrupted = true;
final BeeEvent event = new BeeEvent(this, BeeEvents.ON_ERROR, t);
_listener.onEvent(event);
}
super.getLogger().info("CLOSED: " + this.getClass().getSimpleName());
}