Class ErrorDialogue
java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
org.eclipse.jface.dialogs.IconAndMessageDialog
de.aristaflow.adept2.ui.statushandling.ErrorDialogue
- All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider
public class ErrorDialogue
extends org.eclipse.jface.dialogs.IconAndMessageDialog
An error dialogue that displays stack trace information in its details area.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jface.window.Window
org.eclipse.jface.window.Window.IExceptionHandler -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.swt.widgets.Buttonprotected org.eclipse.swt.widgets.Controlprotected booleanprotected de.aristaflow.adept2.ui.statushandling.ErrorDialogue.StackTraceHeader[]protected Stringprotected org.eclipse.core.runtime.IStatusprotected org.eclipse.swt.widgets.Textprotected Throwableprotected StringFields inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
imageLabel, message, messageLabelFields 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
ConstructorsModifierConstructorDescriptionprotectedErrorDialogue(org.eclipse.swt.widgets.Shell parent, String title, String message, Throwable throwable) protectedErrorDialogue(org.eclipse.swt.widgets.Shell parent, String title, org.eclipse.core.runtime.IStatus status) Constructs a newErrorDialogue. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidbuttonPressed(int id) booleanclose()protected voidconfigureShell(org.eclipse.swt.widgets.Shell shell) protected voidcreateButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.ControlcreateDetailsArea(org.eclipse.swt.widgets.Composite parent) protected voidcreateDetailsButton(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.widgets.ControlcreateDialogArea(org.eclipse.swt.widgets.Composite parent) protected org.eclipse.swt.graphics.ImagegetImage()static voidstatic voidopenError(org.eclipse.swt.widgets.Shell parent, String title, org.eclipse.core.runtime.IStatus status) Display anErrorDialoguewith the given information.Methods inherited from class org.eclipse.jface.dialogs.IconAndMessageDialog
createButtonBar, createContents, createDialogAndButtonArea, createMessageArea, getColumnCount, getErrorImage, getInfoImage, getMessageLabelStyle, getQuestionImage, getWarningImageMethods 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, isResizable, 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
-
Field Details
-
title
-
throwable
-
status
protected org.eclipse.core.runtime.IStatus status -
button_details
protected org.eclipse.swt.widgets.Button button_details -
detailsShown
protected boolean detailsShown -
detailsArea
protected org.eclipse.swt.widgets.Control detailsArea -
stackTrace
-
text_stackTrace
protected org.eclipse.swt.widgets.Text text_stackTrace -
headers
protected de.aristaflow.adept2.ui.statushandling.ErrorDialogue.StackTraceHeader[] headers
-
-
Constructor Details
-
ErrorDialogue
protected ErrorDialogue(org.eclipse.swt.widgets.Shell parent, String title, org.eclipse.core.runtime.IStatus status) Constructs a newErrorDialogue.- Parameters:
parent- the parent of this dialogue (to make it modal)title- the title of this dialogue (optional;nullto use a default title)status- the status object containing the error message and exception
-
ErrorDialogue
-
-
Method Details
-
configureShell
protected void configureShell(org.eclipse.swt.widgets.Shell shell) - Overrides:
configureShellin classorg.eclipse.jface.window.Window
-
createButtonsForButtonBar
protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent) - Overrides:
createButtonsForButtonBarin classorg.eclipse.jface.dialogs.Dialog
-
createDialogArea
protected org.eclipse.swt.widgets.Control createDialogArea(org.eclipse.swt.widgets.Composite parent) - Overrides:
createDialogAreain classorg.eclipse.jface.dialogs.Dialog
-
createDetailsButton
protected void createDetailsButton(org.eclipse.swt.widgets.Composite parent) -
createDetailsArea
protected org.eclipse.swt.widgets.Control createDetailsArea(org.eclipse.swt.widgets.Composite parent) -
getImage
protected org.eclipse.swt.graphics.Image getImage()- Specified by:
getImagein classorg.eclipse.jface.dialogs.IconAndMessageDialog
-
buttonPressed
protected void buttonPressed(int id) - Overrides:
buttonPressedin classorg.eclipse.jface.dialogs.Dialog
-
close
public boolean close()- Overrides:
closein classorg.eclipse.jface.dialogs.Dialog
-
openError
public static void openError(org.eclipse.swt.widgets.Shell parent, String title, org.eclipse.core.runtime.IStatus status) Display anErrorDialoguewith the given information.- Parameters:
parent- the parent of this dialogue (to make it modal)title- the title of this dialogue (optional;nullto use a default title)status- the status object containing the error message and exception
-
openError
-