Class ImportSubdialogs


  • public class ImportSubdialogs
    extends Object
    Utility class to open common import sub dialogs e.g. error or question dialogs
    • Method Detail

      • openErrorDialog

        public static void openErrorDialog​(org.eclipse.swt.widgets.Shell shell,
                                           Throwable exception)
        Opens error dialog with the provided exception content.
        Parameters:
        shell - the parent shell of the dialog, or null if none
        exception - the error, cannot be null
      • openErrorDialog

        public static void openErrorDialog​(org.eclipse.swt.widgets.Shell shell,
                                           String message)
        Opens error dialog with the provided message content.
        Parameters:
        shell - the parent shell of the dialog, or null if none
        message - the error message, cannot be null
      • openQuestionDialog

        public static boolean openQuestionDialog​(org.eclipse.swt.widgets.Shell shell,
                                                 String message)
        Opens question dialog with the provided message content. Returns user answer result.
        Parameters:
        shell - the parent shell of the dialog, or null if none
        message - the question message, cannot be null
        Returns:
        user answer result