fable.framework.toolbox
Class ExceptionMessageDialog

java.lang.Object
  extended by org.eclipse.jface.window.Window
      extended by org.eclipse.jface.dialogs.Dialog
          extended by org.eclipse.jface.dialogs.IconAndMessageDialog
              extended by org.eclipse.jface.dialogs.MessageDialog
                  extended by fable.framework.toolbox.ExceptionMessageDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class ExceptionMessageDialog
extends org.eclipse.jface.dialogs.MessageDialog

ExceptionMessageDialog is a class to display an Exception dialog similar to a MessageDialog but with a stack trace. Even though the name is ExceptionMessageDialog, it will handle a Throwable, which can be an Exception or Error.

Author:
evans

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
static java.lang.String LS
           
 
Fields inherited from class org.eclipse.jface.dialogs.MessageDialog
CONFIRM, ERROR, INFORMATION, NONE, QUESTION, QUESTION_WITH_CANCEL, WARNING
 
Fields inherited from class org.eclipse.jface.dialogs.Dialog
blockedHandler, buttonBar, DIALOG_DEFAULT_BOUNDS, DIALOG_PERSISTLOCATION, DIALOG_PERSISTSIZE, 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
 
Method Summary
static void openException(org.eclipse.swt.widgets.Shell parent, java.lang.String title, java.lang.String msg, java.lang.Throwable t)
          Convenience method to open a standard ExceptionMessageDialog.
 
Methods inherited from class org.eclipse.jface.dialogs.MessageDialog
getImage, open, open, openConfirm, openError, openInformation, openQuestion, openWarning
 
Methods inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
getErrorImage, getInfoImage, getQuestionImage, getWarningImage
 
Methods inherited from class org.eclipse.jface.dialogs.Dialog
applyDialogFont, close, convertHeightInCharsToPixels, convertHorizontalDLUsToPixels, convertVerticalDLUsToPixels, convertWidthInCharsToPixels, create, getBlockedHandler, getImage, setBlockedHandler, shortenText
 
Methods inherited from class org.eclipse.jface.window.Window
getDefaultImage, getDefaultImages, getDefaultOrientation, getReturnCode, getShell, getWindowManager, setBlockOnOpen, setDefaultImage, setDefaultImages, setDefaultModalParent, setDefaultOrientation, setExceptionHandler, setWindowManager
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LS

public static final java.lang.String LS
Method Detail

openException

public static void openException(org.eclipse.swt.widgets.Shell parent,
                                 java.lang.String title,
                                 java.lang.String msg,
                                 java.lang.Throwable t)
Convenience method to open a standard ExceptionMessageDialog.

Parameters:
parent - The parent shell of the dialog, or null if none.
title - The dialog's title, or null if none.
message - The message.
t - The Throwable.