net.refractions.udig.ui
Class ExceptionDetailsDialog
java.lang.Object
Dialog
net.refractions.udig.ui.ExceptionDetailsDialog
public class ExceptionDetailsDialog
- extends Dialog
An error dialog that shows a detail view with the whole stacktrace.
- Author:
- Andrea Antonello (www.hydrologis.com)
Method Summary |
static void |
appendException(java.io.PrintWriter writer,
java.lang.Throwable ex)
|
static void |
appendStackTrace(java.io.PrintWriter writer,
java.lang.Throwable ex)
|
static void |
appendStatus(java.io.PrintWriter writer,
IStatus status,
int nesting)
|
protected void |
buttonPressed(int id)
|
protected void |
configureShell(Shell shell)
|
protected void |
createButtonsForButtonBar(Composite parent)
|
protected Control |
createDetailsArea(Composite parent)
|
protected Control |
createDetailsViewer(Composite parent)
|
protected Control |
createDialogArea(Composite parent)
|
static Image |
getImage(java.lang.Object details)
|
static java.lang.String |
getMessage(java.lang.String message,
java.lang.Object details)
|
static java.lang.String |
getTitle(java.lang.String title,
java.lang.Object details)
|
static void |
openError(java.lang.String title,
java.lang.String message,
int istatus,
java.lang.String pluginID,
java.lang.Throwable throwable)
Opens the error dialog. |
protected void |
toggleDetailsArea()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
openError
public static void openError(java.lang.String title,
java.lang.String message,
int istatus,
java.lang.String pluginID,
java.lang.Throwable throwable)
- Opens the error dialog.
- Parameters:
title
- a title or null, in which case the exception name is used.message
- a message or null, in which case the exception message is used.istatus
- the IStatus
int, as for example IStatus#ERROR
.pluginID
- the Id of the plugin that is calling.throwable
- the exception of which to show the stacktrace.
configureShell
protected void configureShell(Shell shell)
createDialogArea
protected Control createDialogArea(Composite parent)
createButtonsForButtonBar
protected void createButtonsForButtonBar(Composite parent)
buttonPressed
protected void buttonPressed(int id)
toggleDetailsArea
protected void toggleDetailsArea()
getTitle
public static java.lang.String getTitle(java.lang.String title,
java.lang.Object details)
getImage
public static Image getImage(java.lang.Object details)
getMessage
public static java.lang.String getMessage(java.lang.String message,
java.lang.Object details)
appendException
public static void appendException(java.io.PrintWriter writer,
java.lang.Throwable ex)
appendStatus
public static void appendStatus(java.io.PrintWriter writer,
IStatus status,
int nesting)
appendStackTrace
public static void appendStackTrace(java.io.PrintWriter writer,
java.lang.Throwable ex)
createDetailsArea
protected Control createDetailsArea(Composite parent)
createDetailsViewer
protected Control createDetailsViewer(Composite parent)