public abstract class AbstractDialog
extends org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, dialogArea, DLG_IMG_ERROR, DLG_IMG_HELP, DLG_IMG_INFO, DLG_IMG_MESSAGE_ERROR, DLG_IMG_MESSAGE_INFO, DLG_IMG_MESSAGE_WARNING, DLG_IMG_QUESTION, DLG_IMG_WARNING, ELLIPSIS| Modifier | Constructor and Description |
|---|---|
protected |
AbstractDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String message)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
configureShell(org.eclipse.swt.widgets.Shell shell) |
protected org.eclipse.swt.widgets.Control |
createButtonBar(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createContents(org.eclipse.swt.widgets.Composite parent) |
protected org.eclipse.swt.widgets.Control |
createCustomArea(org.eclipse.swt.widgets.Composite parent)
Creates and returns the contents of an area of the dialog which appears below the message and above the button
bar.
|
protected void |
createDialogAndButtonArea(org.eclipse.swt.widgets.Composite parent)
Create the dialog area and the button bar for the receiver.
|
protected org.eclipse.swt.widgets.Control |
createDialogArea(org.eclipse.swt.widgets.Composite parent)
This implementation of the
Dialog framework method creates and lays out a composite and calls
createMessageArea and createCustomArea to populate it. |
protected org.eclipse.swt.widgets.Control |
createMessageArea(org.eclipse.swt.widgets.Composite composite)
Create the area the message will be shown in.
|
protected int |
getColumnCount()
Get the number of columns in the layout of the Shell of the dialog.
|
protected int |
getMessageLabelStyle()
Returns the style for the message label.
|
protected int |
getShellStyle() |
applyDialogFont, buttonPressed, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonsForButtonBar, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, isResizable, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenTextcanHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getWindowManager, handleFontChange, handleShellCloseEvent, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManagerprotected AbstractDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String message)
parentShell - The parent shell, or null to create a top-level shell.title - The title to use for the dialog.message - The message to display inside this dialog.protected void configureShell(org.eclipse.swt.widgets.Shell shell)
configureShell in class org.eclipse.jface.window.Windowprotected int getMessageLabelStyle()
protected org.eclipse.swt.widgets.Control createButtonBar(org.eclipse.swt.widgets.Composite parent)
createButtonBar in class org.eclipse.jface.dialogs.Dialogprotected org.eclipse.swt.widgets.Control createContents(org.eclipse.swt.widgets.Composite parent)
createContents in class org.eclipse.jface.dialogs.Dialogprotected int getColumnCount()
protected void createDialogAndButtonArea(org.eclipse.swt.widgets.Composite parent)
parent - protected org.eclipse.swt.widgets.Control createCustomArea(org.eclipse.swt.widgets.Composite parent)
The default implementation of this framework method returns null. Subclasses may override.
parent - parent composite to contain the custom areanullprotected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Dialog framework method creates and lays out a composite and calls
createMessageArea and createCustomArea to populate it. Subclasses should override
createCustomArea to add contents below the message.createDialogArea in class org.eclipse.jface.dialogs.Dialogprotected org.eclipse.swt.widgets.Control createMessageArea(org.eclipse.swt.widgets.Composite composite)
The parent composite is assumed to use GridLayout as its layout manager, since the parent is typically the
composite created in Dialog.createDialogArea(org.eclipse.swt.widgets.Composite).
composite - The composite to parent from.protected int getShellStyle()
getShellStyle in class org.eclipse.jface.window.Window