Example usage for Java org.eclipse.jface.dialogs Dialog fields, constructors, methods, implement or subclass
The text is from its open source code.
String | DLG_IMG_ERROR Image registry key for error image (value "dialog_error_image" ). |
String | DLG_IMG_INFO Image registry key for info image (value "dialog_info_image" ). |
String | DLG_IMG_QUESTION Image registry key for question image (value "dialog_question_image" ). |
String | DLG_IMG_WARNING Image registry key for warning image (value "dialog_warning_image" ). |
String | DLG_IMG_MESSAGE_INFO Image registry key for info message image (value "dialog_messasge_info_image" ). |
String | DLG_IMG_MESSAGE_WARNING Image registry key for info message image (value "dialog_messasge_warning_image" ). |
String | DLG_IMG_MESSAGE_ERROR Image registry key for info message image (value "dialog_message_error_image" ). |
String | DLG_IMG_HELP Image registry key for help image (value "dialog_help_image" ). |
String | ELLIPSIS The ellipsis is the string that is used to represent shortened text. |
int | DIALOG_DEFAULT_BOUNDS A value that can be used for stored dialog width or height that indicates that the default bounds should be used. |
int | DIALOG_PERSISTLOCATION Persist the last location of the dialog. |
int | DIALOG_PERSISTSIZE Persist the last known size of the dialog. |
Dialog(Shell parentShell) Creates a dialog instance. | |
Dialog(IShellProvider parentShell) Creates a dialog with the given parent. |
void | applyDialogFont(Control control) Applies the dialog font to all controls that currently have the default font. |
boolean | close() |
int | convertHeightInCharsToPixels(FontMetrics fontMetrics, int chars) Returns the number of pixels corresponding to the height of the given number of characters. |
int | convertHorizontalDLUsToPixels(FontMetrics fontMetrics, int dlus) Returns the number of pixels corresponding to the given number of horizontal dialog units. |
int | convertVerticalDLUsToPixels(FontMetrics fontMetrics, int dlus) Returns the number of pixels corresponding to the given number of vertical dialog units. |
int | convertWidthInCharsToPixels(FontMetrics fontMetrics, int chars) Returns the number of pixels corresponding to the width of the given number of characters. |
void | create() |
IDialogBlockedHandler | getBlockedHandler() Get the IDialogBlockedHandler to be used by WizardDialogs and ModalContexts. |
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. |
void | setBlockedHandler(IDialogBlockedHandler blockedHandler) Set the IDialogBlockedHandler to be used by WizardDialogs and ModalContexts. |
void | setBlockOnOpen(boolean shouldBlock) Sets whether the open method should block until the window closes. |
String | shortenText(String textValue, Control control) Try to shorten the given text textValue so that its width in pixels does not exceed the width of the given control. |