Class ExceptionDialog
- java.lang.Object
-
- org.eclipse.jface.window.Window
-
- org.eclipse.jface.dialogs.Dialog
-
- org.eclipse.nebula.widgets.nattable.ui.ExceptionDialog
-
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class ExceptionDialog extends org.eclipse.jface.dialogs.Dialog
Dialog that can be used to show an error with an additional stacktrace.- Since:
- 1.5
-
-
Field Summary
-
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExceptionDialog(org.eclipse.swt.widgets.Shell parentShell, String title, String message, Exception exception)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
buttonPressed(int id)
protected void
configureShell(org.eclipse.swt.widgets.Shell newShell)
protected void
createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Control
createDialogArea(org.eclipse.swt.widgets.Composite parent)
protected org.eclipse.swt.widgets.Control
createMessageArea(org.eclipse.swt.widgets.Composite composite)
protected boolean
isResizable()
static int
open(org.eclipse.swt.widgets.Shell parentShell, String title, Exception exception)
Opens an error dialog to display the given error.static int
open(org.eclipse.swt.widgets.Shell parentShell, String title, String message, Exception exception)
Opens an error dialog to display the given error.-
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, cancelPressed, close, convertHeightInCharsToPixels, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, convertWidthInCharsToPixels, create, createButton, createButtonBar, createContents, 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, open, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setParentShell, setReturnCode, setShellStyle, setWindowManager
-
-
-
-
Method Detail
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createDialogArea
in classorg.eclipse.jface.dialogs.Dialog
-
createMessageArea
protected org.eclipse.swt.widgets.Control createMessageArea(org.eclipse.swt.widgets.Composite composite)
-
createButtonsForButtonBar
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
- Overrides:
createButtonsForButtonBar
in classorg.eclipse.jface.dialogs.Dialog
-
buttonPressed
protected void buttonPressed(int id)
- Overrides:
buttonPressed
in classorg.eclipse.jface.dialogs.Dialog
-
open
public static int open(org.eclipse.swt.widgets.Shell parentShell, String title, Exception exception)
Opens an error dialog to display the given error.- Parameters:
parentShell
- the parent shell of the dialog, ornull
if nonetitle
- the title to use for this dialog, ornull
to indicate that the default title should be usedexception
- the error to show to the user- Returns:
- the code of the button that was pressed that resulted in this
dialog closing. This will be
Dialog.OK
if the OK button was pressed, orDialog.CANCEL
if this dialog's close window decoration or the ESC key was used.
-
open
public static int open(org.eclipse.swt.widgets.Shell parentShell, String title, String message, Exception exception)
Opens an error dialog to display the given error.- Parameters:
parentShell
- the parent shell of the dialog, ornull
if nonetitle
- the title to use for this dialog, ornull
to indicate that the default title should be usedmessage
- the message to show in this dialog, ornull
to indicate that the error's message should be shown as the primary messageexception
- the error to show to the user- Returns:
- the code of the button that was pressed that resulted in this
dialog closing. This will be
Dialog.OK
if the OK button was pressed, orDialog.CANCEL
if this dialog's close window decoration or the ESC key was used.
-
isResizable
protected boolean isResizable()
- Overrides:
isResizable
in classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
- Overrides:
configureShell
in classorg.eclipse.jface.window.Window
-
-