Class ConfirmErrorsDialog


  • public class ConfirmErrorsDialog
    extends java.lang.Object
    Utility class for displaying a dialog to keep or dump invalid attributes of a game object.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean askConfirmErrors​(@NotNull java.lang.String errors, @NotNull java.awt.Component parent)
      Open a popup dialog and ask the user to confirm (or modify) the encountered syntax errors.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • askConfirmErrors

        public static boolean askConfirmErrors​(@NotNull
                                               @NotNull java.lang.String errors,
                                               @NotNull
                                               @NotNull java.awt.Component parent)
        Open a popup dialog and ask the user to confirm (or modify) the encountered syntax errors. If the user chooses to keep any errors, these get attached to the archetype text by the action listener ( ConfirmErrorsAL).

        Note that this method does not fork off with a new thread. It freezes the parent frames (and threads) until the popup window is closed, which mimics non-event-driven behaviour.

        Parameters:
        errors - a textual list of the encountered errors
        parent - the parent dialog
        Returns:
        whether to keep the errors