Java org.eclipse.jface.dialogs MessageDialog fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jface.dialogs MessageDialog fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jface.dialogs MessageDialog.

The text is from its open source code.

Subclass

org.eclipse.jface.dialogs.MessageDialog has subclasses.
Click this link to see all its subclasses.

Field

intNONE
Constant for no image (value 0).
intERROR
Constant for the error image, or a simple dialog with the error image and a single OK button (value 1).
intINFORMATION
Constant for the info image, or a simple dialog with the info image and a single OK button (value 2).
intQUESTION
Constant for the question image, or a simple dialog with the question image and Yes/No buttons (value 3).
intWARNING
Constant for the warning image, or a simple dialog with the warning image and a single OK button (value 4).
intCONFIRM
Constant for a simple dialog with the question image and OK/Cancel buttons (value 5).
intQUESTION_WITH_CANCEL
Constant for a simple dialog with the question image and Yes/No/Cancel buttons (value 6).

Constructor

Method

booleanclose()
voidcreate()
ImagegetImage(String key)
Returns the standard dialog image with the given key.
intgetReturnCode()
Returns this window's return code.
ShellgetShell()
Returns this window's shell.
intopen()
Opens this window, creating it first if it has not yet been created.
booleanopen(int kind, Shell parent, String title, String message, int style)
Convenience method to open a simple dialog as specified by the kind flag.
booleanopenConfirm(Shell parent, String title, String message)
Convenience method to open a simple confirm (OK/Cancel) dialog.
voidopenError(Shell parent, String title, String message)
Convenience method to open a standard error dialog.
voidopenInformation(Shell parent, String title, String message)
Convenience method to open a standard information dialog.
booleanopenQuestion(Shell parent, String title, String message)
Convenience method to open a simple Yes/No question dialog.
voidopenWarning(Shell parent, String title, String message)
Convenience method to open a standard warning dialog.
voidsetBlockOnOpen(boolean shouldBlock)
Sets whether the open method should block until the window closes.
voidsetDefaultImage(Image image)
Sets the default image.