Example usage for Java org.eclipse.jface.dialogs MessageDialog fields, constructors, methods, implement or subclass
The text is from its open source code.
int | NONE Constant for no image (value 0). |
int | ERROR Constant for the error image, or a simple dialog with the error image and a single OK button (value 1). |
int | INFORMATION Constant for the info image, or a simple dialog with the info image and a single OK button (value 2). |
int | QUESTION Constant for the question image, or a simple dialog with the question image and Yes/No buttons (value 3). |
int | WARNING Constant for the warning image, or a simple dialog with the warning image and a single OK button (value 4). |
int | CONFIRM Constant for a simple dialog with the question image and OK/Cancel buttons (value 5). |
int | QUESTION_WITH_CANCEL Constant for a simple dialog with the question image and Yes/No/Cancel buttons (value 6). |
boolean | close() |
void | create() |
Image | getImage(String key) Returns the standard dialog image with the given key. |
int | getReturnCode() Returns this window's return code. |
Shell | getShell() Returns this window's shell. |
int | open() Opens this window, creating it first if it has not yet been created. |
boolean | open(int kind, Shell parent, String title, String message, int style) Convenience method to open a simple dialog as specified by the kind flag. |
boolean | openConfirm(Shell parent, String title, String message) Convenience method to open a simple confirm (OK/Cancel) dialog. |
void | openError(Shell parent, String title, String message) Convenience method to open a standard error dialog. |
void | openInformation(Shell parent, String title, String message) Convenience method to open a standard information dialog. |
boolean | openQuestion(Shell parent, String title, String message) Convenience method to open a simple Yes/No question dialog. |
void | openWarning(Shell parent, String title, String message) Convenience method to open a standard warning dialog. |
void | setBlockOnOpen(boolean shouldBlock) Sets whether the open method should block until the window closes. |
void | setDefaultImage(Image image) Sets the default image. |