public class MessageUtil
extends java.lang.Object
Constructor and Description |
---|
MessageUtil() |
Modifier and Type | Method and Description |
---|---|
static void |
showErrorMessage(Shell shell,
java.lang.String msg)
Displays a modal popup dialog with an ERROR icon and an OK button.
|
static void |
showErrorMessage(Shell parent,
java.lang.String title,
java.lang.String message,
PartInitException exception)
Open an error style dialog for
CoreException by
including any extra information from the nested
CoreException if present. |
static void |
showInfoMessage(Shell shell,
java.lang.String msg)
Displays a modal popup dialog with an INFORMATION icon and an OK button.
|
static boolean |
showQuestionMessage(Shell shell,
java.lang.String title,
java.lang.String msg)
Displays a modal popup dialog with an QUESTION icon and an OK plus CANCEL button.
|
static void |
showWarningMessage(Shell shell,
java.lang.String msg)
Displays a modal popup dialog with an WARNING icon and an OK button.
|
public static void showErrorMessage(Shell parent, java.lang.String title, java.lang.String message, PartInitException exception)
CoreException
by
including any extra information from the nested
CoreException if present.public static void showErrorMessage(Shell shell, java.lang.String msg)
shell
- The parent shell.msg
- The message to be displayed.public static void showWarningMessage(Shell shell, java.lang.String msg)
shell
- The parent shell.msg
- The message to be displayed.public static void showInfoMessage(Shell shell, java.lang.String msg)
shell
- The parent shell.msg
- The message to be displayed.public static boolean showQuestionMessage(Shell shell, java.lang.String title, java.lang.String msg)
shell
- The parent shell.title
- The dialog title to be shown.msg
- The message to be displayed.#true
if the dialog was closed using the OK button,
false
otherwise.