Class AsyncWarning
java.lang.Object
jmt.common.AsyncWarning
Shows an engine warning from a separate thread after a short delay, so the GUI is up before the popup appears.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic longDelay before the warning is shown, in milliseconds; tests set it to 0 and restore it. -
Method Summary
Modifier and TypeMethodDescriptionstatic ThreadReports the warning to the reporter installed now, afterdelayMillis.
-
Field Details
-
delayMillis
public static volatile long delayMillisDelay before the warning is shown, in milliseconds; tests set it to 0 and restore it.
-
-
Method Details
-
warn
Reports the warning to the reporter installed now, afterdelayMillis.- Returns:
- the started thread, so tests can join it.
-