Class AsyncWarning

java.lang.Object
jmt.common.AsyncWarning

public final class AsyncWarning extends Object
Shows an engine warning from a separate thread after a short delay, so the GUI is up before the popup appears.
  • Field Details

    • delayMillis

      public static volatile long delayMillis
      Delay before the warning is shown, in milliseconds; tests set it to 0 and restore it.
  • Method Details

    • warn

      public static Thread warn(String title, String message)
      Reports the warning to the reporter installed now, after delayMillis.
      Returns:
      the started thread, so tests can join it.