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
-
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.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, ELLIPSISFields inherited from class org.eclipse.jface.window.Window
CANCEL, OK, resizeHasOccurred -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedExceptionDialog(org.eclipse.swt.widgets.Shell parentShell, String title, String message, Exception exception) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuttonPressed(int id) protected voidconfigureShell(org.eclipse.swt.widgets.Shell newShell) protected voidcreateButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.ControlcreateMessageArea(org.eclipse.swt.widgets.Composite composite) protected booleanstatic intOpens an error dialog to display the given error.static intOpens 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, shortenTextMethods 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
-
Constructor Details
-
ExceptionDialog
-
-
Method Details
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogAreain 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:
createButtonsForButtonBarin classorg.eclipse.jface.dialogs.Dialog
-
buttonPressed
protected void buttonPressed(int id) - Overrides:
buttonPressedin 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, ornullif nonetitle- the title to use for this dialog, ornullto 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.OKif the OK button was pressed, orDialog.CANCELif 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, ornullif nonetitle- the title to use for this dialog, ornullto indicate that the default title should be usedmessage- the message to show in this dialog, ornullto 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.OKif the OK button was pressed, orDialog.CANCELif this dialog's close window decoration or the ESC key was used.
-
isResizable
protected boolean isResizable()- Overrides:
isResizablein classorg.eclipse.jface.dialogs.Dialog
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell newShell) - Overrides:
configureShellin classorg.eclipse.jface.window.Window
-