edu.wpi.ebob.internal.gui.dialogs
Class DetailsDialogUtil

java.lang.Object
  extended by edu.wpi.ebob.internal.gui.dialogs.DetailsDialogUtil

public class DetailsDialogUtil
extends java.lang.Object

Convenience class for providing a stack trace dialog with optional details.

Author:
Liam Morley

Constructor Summary
DetailsDialogUtil()
           
 
Method Summary
private static org.eclipse.core.runtime.IStatus getStatus(java.lang.Throwable t)
          Retrieves a MultiStatusmade out of multiple Status objects, each Status object representing a line in the stacktrace.
static int openError(org.eclipse.swt.widgets.Shell parent, java.lang.Throwable t)
          Opens an error dialog with details concerning the stack trace of the given exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DetailsDialogUtil

public DetailsDialogUtil()
Method Detail

getStatus

private static org.eclipse.core.runtime.IStatus getStatus(java.lang.Throwable t)
Retrieves a MultiStatusmade out of multiple Status objects, each Status object representing a line in the stacktrace.


openError

public static int openError(org.eclipse.swt.widgets.Shell parent,
                            java.lang.Throwable t)
Opens an error dialog with details concerning the stack trace of the given exception.

Parameters:
parent - the parent shell
t - the exception to display
Returns:
the return code of a Dialog.