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

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

Introduction

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

The text is from its open source code.

Subclass

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

Field

StringDLG_IMG_ERROR
Image registry key for error image (value "dialog_error_image").
StringDLG_IMG_INFO
Image registry key for info image (value "dialog_info_image").
StringDLG_IMG_QUESTION
Image registry key for question image (value "dialog_question_image").
StringDLG_IMG_WARNING
Image registry key for warning image (value "dialog_warning_image").
StringDLG_IMG_MESSAGE_INFO
Image registry key for info message image (value "dialog_messasge_info_image").
StringDLG_IMG_MESSAGE_WARNING
Image registry key for info message image (value "dialog_messasge_warning_image").
StringDLG_IMG_MESSAGE_ERROR
Image registry key for info message image (value "dialog_message_error_image").
StringDLG_IMG_HELP
Image registry key for help image (value "dialog_help_image").
StringELLIPSIS
The ellipsis is the string that is used to represent shortened text.
intDIALOG_DEFAULT_BOUNDS
A value that can be used for stored dialog width or height that indicates that the default bounds should be used.
intDIALOG_PERSISTLOCATION
Persist the last location of the dialog.
intDIALOG_PERSISTSIZE
Persist the last known size of the dialog.

Constructor

Dialog(Shell parentShell)
Creates a dialog instance.
Dialog(IShellProvider parentShell)
Creates a dialog with the given parent.

Method

voidapplyDialogFont(Control control)
Applies the dialog font to all controls that currently have the default font.
booleanclose()
intconvertHeightInCharsToPixels(FontMetrics fontMetrics, int chars)
Returns the number of pixels corresponding to the height of the given number of characters.
intconvertHorizontalDLUsToPixels(FontMetrics fontMetrics, int dlus)
Returns the number of pixels corresponding to the given number of horizontal dialog units.
intconvertVerticalDLUsToPixels(FontMetrics fontMetrics, int dlus)
Returns the number of pixels corresponding to the given number of vertical dialog units.
intconvertWidthInCharsToPixels(FontMetrics fontMetrics, int chars)
Returns the number of pixels corresponding to the width of the given number of characters.
voidcreate()
IDialogBlockedHandlergetBlockedHandler()
Get the IDialogBlockedHandler to be used by WizardDialogs and ModalContexts.
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.
voidsetBlockedHandler(IDialogBlockedHandler blockedHandler)
Set the IDialogBlockedHandler to be used by WizardDialogs and ModalContexts.
voidsetBlockOnOpen(boolean shouldBlock)
Sets whether the open method should block until the window closes.
StringshortenText(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.