Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.util.dialog
Class StackTraceErrorDialog

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.ErrorDialog
                  extended by eu.esdihumboldt.hale.ui.util.dialog.StackTraceErrorDialog
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class StackTraceErrorDialog
extends org.eclipse.jface.dialogs.ErrorDialog

Extended ErrorDialog which displays the stack trace. Can be configured to also show a link to the error log view.

Author:
Michel Kraemer, Simon Templer

Nested Class Summary
 
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler
 
Field Summary
protected static String LOG_VIEW_ID
          ID of the Error Log view
 
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
StackTraceErrorDialog(org.eclipse.swt.widgets.Shell parentShell, String dialogTitle, String message, org.eclipse.core.runtime.IStatus status, int displayMask)
          Constructs a new error dialog
 
Method Summary
 boolean close()
           
protected  void copyToClipboard()
          Copies the stack trace to the clipboard
protected  org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
           
protected  org.eclipse.swt.widgets.List createDropDownList(org.eclipse.swt.widgets.Composite parent)
           
 void setShowErrorLogLink(boolean showErrorLogLink)
           
 
Methods inherited from class org.eclipse.jface.dialogs.ErrorDialog
buttonPressed, configureShell, createButtonsForButtonBar, createDetailsButton, createDialogAndButtonArea, getImage, isResizable, open, openError, openError, setStatus, shouldDisplay, shouldShowDetailsButton, showDetailsArea
 
Methods inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
createButtonBar, createContents, createMessageArea, 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
 

Field Detail

LOG_VIEW_ID

protected static final String LOG_VIEW_ID
ID of the Error Log view

See Also:
Constant Field Values
Constructor Detail

StackTraceErrorDialog

public StackTraceErrorDialog(org.eclipse.swt.widgets.Shell parentShell,
                             String dialogTitle,
                             String message,
                             org.eclipse.core.runtime.IStatus status,
                             int displayMask)
Constructs a new error dialog

See Also:
ErrorDialog.ErrorDialog(Shell, String, String, IStatus, int)
Method Detail

setShowErrorLogLink

public void setShowErrorLogLink(boolean showErrorLogLink)
Parameters:
showErrorLogLink - if the error log link shall be shown

createDropDownList

protected org.eclipse.swt.widgets.List createDropDownList(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDropDownList in class org.eclipse.jface.dialogs.ErrorDialog
See Also:
ErrorDialog.createDropDownList(Composite)

copyToClipboard

protected void copyToClipboard()
Copies the stack trace to the clipboard


close

public boolean close()
Overrides:
close in class org.eclipse.jface.dialogs.ErrorDialog
See Also:
ErrorDialog.close()

createDialogArea

protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent)
Overrides:
createDialogArea in class org.eclipse.jface.dialogs.ErrorDialog
See Also:
ErrorDialog.createDialogArea(Composite)

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d