Class WhiteErrorDialogue

java.lang.Object
org.eclipse.jface.window.Window
org.eclipse.jface.dialogs.Dialog
de.aristaflow.adept2.ui.statushandling.WhiteErrorDialogue
All Implemented Interfaces:
org.eclipse.jface.window.IShellProvider

public class WhiteErrorDialogue extends org.eclipse.jface.dialogs.Dialog
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

    Fields
    Modifier and Type
    Field
    Description
    protected org.eclipse.swt.widgets.Button
     
    protected org.eclipse.swt.widgets.Control
     
    protected boolean
     
    protected de.aristaflow.adept2.ui.statushandling.WhiteErrorDialogue.StackTraceHeader[]
     
    protected String
     
    protected org.eclipse.core.runtime.IStatus
     
    protected org.eclipse.swt.widgets.Text
     
    protected final Throwable
     
    protected final String
     

    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
    WhiteErrorDialogue(org.eclipse.swt.widgets.Shell parent, String title, org.eclipse.core.runtime.IStatus status)
    Constructs a new ErrorDialogue.
    protected
    WhiteErrorDialogue(org.eclipse.swt.widgets.Shell parent, org.eclipse.swt.widgets.Display display, String title, String message, Throwable throwable)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    buttonPressed(int id)
     
    boolean
     
    protected void
    configureShell(org.eclipse.swt.widgets.Shell shell)
     
    protected void
    createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
     
    protected org.eclipse.swt.widgets.Control
    createDetailsArea(org.eclipse.swt.widgets.Composite parent)
     
    protected void
    createDetailsButton(org.eclipse.swt.widgets.Composite parent)
     
    protected org.eclipse.swt.widgets.Control
    createDialogArea(org.eclipse.swt.widgets.Composite parent)
     
    static void
    openError(org.eclipse.swt.widgets.Display display, String title, String message, Throwable throwable)
     
    static void
    openError(org.eclipse.swt.widgets.Shell parent, String title, String message, Throwable throwable)
     
    static void
    openError(org.eclipse.swt.widgets.Shell parent, String title, org.eclipse.core.runtime.IStatus status)
    Display an ErrorDialogue with the given information.

    Methods inherited from class org.eclipse.jface.dialogs.Dialog

    applyDialogFont, cancelPressed, 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, isResizable, 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
  • Field Details

    • title

      protected final String title
    • throwable

      protected final Throwable 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

      protected String stackTrace
    • text_stackTrace

      protected org.eclipse.swt.widgets.Text text_stackTrace
    • headers

      protected de.aristaflow.adept2.ui.statushandling.WhiteErrorDialogue.StackTraceHeader[] headers
  • Constructor Details

    • WhiteErrorDialogue

      protected WhiteErrorDialogue(org.eclipse.swt.widgets.Shell parent, String title, org.eclipse.core.runtime.IStatus status)
      Constructs a new ErrorDialogue.
      Parameters:
      parent - The parent of this dialogue (to make it modal). This must not be null.
      title - the title of this dialogue (optional; null to use a default title)
      status - the status object containing the error message and exception
    • WhiteErrorDialogue

      protected WhiteErrorDialogue(org.eclipse.swt.widgets.Shell parent, org.eclipse.swt.widgets.Display display, String title, String message, Throwable throwable)
  • Method Details

    • configureShell

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

      protected void createButtonsForButtonBar(org.eclipse.swt.widgets.Composite parent)
      Overrides:
      createButtonsForButtonBar in class org.eclipse.jface.dialogs.Dialog
    • createDialogArea

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

      protected void buttonPressed(int id)
      Overrides:
      buttonPressed in class org.eclipse.jface.dialogs.Dialog
    • close

      public boolean close()
      Overrides:
      close in class org.eclipse.jface.dialogs.Dialog
    • openError

      public static void openError(org.eclipse.swt.widgets.Shell parent, String title, org.eclipse.core.runtime.IStatus status)
      Display an ErrorDialogue with the given information.
      Parameters:
      parent - the parent of this dialogue (to make it modal)
      title - the title of this dialogue (optional; null to use a default title)
      status - the status object containing the error message and exception
    • openError

      public static void openError(org.eclipse.swt.widgets.Shell parent, String title, String message, Throwable throwable)
    • openError

      public static void openError(org.eclipse.swt.widgets.Display display, String title, String message, Throwable throwable)