Class ConfirmErrorsDialog
- java.lang.Object
-
- net.sf.gridarta.gui.dialog.gameobjectattributes.ConfirmErrorsDialog
-
public class ConfirmErrorsDialog extends java.lang.ObjectUtility 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 booleanaskConfirmErrors(@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.
-
-
-
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 errorsparent- the parent dialog- Returns:
- whether to keep the errors
-
-