|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.jface.window.Window org.eclipse.jface.dialogs.Dialog org.eclipse.jface.dialogs.IconAndMessageDialog org.eclipse.jface.dialogs.ErrorDialog com.ibm.commons.swt.dialog.LWPDErrorDialog
public class LWPDErrorDialog
As the name suggests, a dialog that is used to display an error message. This dialog is normally accessed statically.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window |
---|
org.eclipse.jface.window.Window.IExceptionHandler |
Field Summary |
---|
Fields inherited from class org.eclipse.jface.dialogs.ErrorDialog |
---|
AUTOMATED_MODE |
Fields inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog |
---|
imageLabel, message, messageLabel |
Fields inherited from class 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 |
Fields inherited from class org.eclipse.jface.window.Window |
---|
CANCEL, OK |
Constructor Summary | |
---|---|
LWPDErrorDialog(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String dialogTitle,
java.lang.String message,
org.eclipse.core.runtime.IStatus status,
int displayMask)
Constructs a new instance of this class with the given parameters. |
Method Summary | |
---|---|
boolean |
close()
|
protected org.eclipse.swt.widgets.Control |
createMessageArea(org.eclipse.swt.widgets.Composite composite)
|
static int |
openError(org.eclipse.swt.widgets.Shell parent,
java.lang.String dialogTitle,
java.lang.String message,
org.eclipse.core.runtime.IStatus status)
Opens an instance of the error dialog. |
static int |
openError(org.eclipse.swt.widgets.Shell parentShell,
java.lang.String title,
java.lang.String message,
org.eclipse.core.runtime.IStatus status,
int displayMask)
Opens an instance of the error dialog. |
Methods inherited from class org.eclipse.jface.dialogs.ErrorDialog |
---|
buttonPressed, configureShell, createButtonsForButtonBar, createDetailsButton, createDialogAndButtonArea, createDialogArea, createDropDownList, getImage, isResizable, open, setStatus, shouldDisplay, shouldShowDetailsButton, showDetailsArea |
Methods inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog |
---|
createButtonBar, createContents, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImage |
Methods inherited from class org.eclipse.jface.dialogs.Dialog |
---|
applyDialogFont, cancelPressed, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, dialogFontIsDefault, getBlockedHandler, getButton, getButtonBar, getCancelButton, getDialogArea, getDialogBoundsSettings, getDialogBoundsStrategy, getImage, getInitialLocation, getInitialSize, getOKButton, initializeBounds, initializeDialogUnits, okPressed, setBlockedHandler, setButtonLayoutData, setButtonLayoutFormData, shortenText |
Methods inherited from class org.eclipse.jface.window.Window |
---|
canHandleShellCloseEvent, constrainShellSize, createShell, getConstrainedShellBounds, getContents, getDefaultImage, getDefaultImages, getDefaultOrientation, getLayout, getParentShell, getReturnCode, getShell, getShellListener, getShellStyle, getWindowManager, handleFontChange, handleShellCloseEvent, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LWPDErrorDialog(org.eclipse.swt.widgets.Shell parentShell, java.lang.String dialogTitle, java.lang.String message, org.eclipse.core.runtime.IStatus status, int displayMask)
openError(Shell, String, String, IStatus)
to create and open one of these.
This constructor is useful only if the error object being displayed contains child items and you need
to specify a mask which will be used to filter the displaying of these children. The error dialog
will only be displayed if there is at least one child status matching the mask.
parentShell
- the parent shell used to construct the dialogdialogTitle
- the message to appear in the title bar of the dialogmessage
- the message to appear in the body of the dialogstatus
- the status corresponding to the error message, will typically contain an exceptiondisplayMask
- the mask to use to filter the displaying of child items, as per IStatus.matchesIStatus.matches(int)
Method Detail |
---|
protected org.eclipse.swt.widgets.Control createMessageArea(org.eclipse.swt.widgets.Composite composite)
createMessageArea
in class org.eclipse.jface.dialogs.IconAndMessageDialog
public boolean close()
close
in class org.eclipse.jface.dialogs.ErrorDialog
public static int openError(org.eclipse.swt.widgets.Shell parent, java.lang.String dialogTitle, java.lang.String message, org.eclipse.core.runtime.IStatus status)
parent
- the parent shelldialogTitle
- the text to appear in the title bar, null
for the defaultmessage
- the message to display to the userstatus
- the exception to display to the user
public static int openError(org.eclipse.swt.widgets.Shell parentShell, java.lang.String title, java.lang.String message, org.eclipse.core.runtime.IStatus status, int displayMask)
parent
- the parent shelldialogTitle
- the text to appear in the title bar, null
for the defaultmessage
- the message to display to the userstatus
- the exception to display to the userdisplayMask
- the mask to use to filter the displaying of child items, as per IStatus.matches
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |