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, ELLIPSIS

    Fields inherited from class org.eclipse.jface.window.Window

    CANCEL, OK, resizeHasOccurred
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    ExceptionDialog(org.eclipse.swt.widgets.Shell parentShell, String title, String message, Exception exception)
     
  • Method Summary

    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
     
    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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ExceptionDialog

      protected ExceptionDialog(org.eclipse.swt.widgets.Shell parentShell, String title, String message, Exception exception)
  • Method Details

    • createDialogArea

      protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
      Overrides:
      createDialogArea in class org.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 class org.eclipse.jface.dialogs.Dialog
    • buttonPressed

      protected void buttonPressed(int id)
      Overrides:
      buttonPressed in class org.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, or null if none
      title - the title to use for this dialog, or null to indicate that the default title should be used
      exception - 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, or Dialog.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, or null if none
      title - the title to use for this dialog, or null to indicate that the default title should be used
      message - the message to show in this dialog, or null to indicate that the error's message should be shown as the primary message
      exception - 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, or Dialog.CANCEL if this dialog's close window decoration or the ESC key was used.
    • isResizable

      protected boolean isResizable()
      Overrides:
      isResizable in class org.eclipse.jface.dialogs.Dialog
    • configureShell

      protected void configureShell(org.eclipse.swt.widgets.Shell newShell)
      Overrides:
      configureShell in class org.eclipse.jface.window.Window