org.merlotxml.merlot
Class MerlotError

java.lang.Object
  extended byorg.merlotxml.merlot.MerlotError
All Implemented Interfaces:
MerlotConstants

public class MerlotError
extends java.lang.Object
implements MerlotConstants

Gui error reporter for the end-user

Author:
Administrator

Nested Class Summary
 class MerlotError.msgRunnable
          Description of the Class
protected static class MerlotError.ShowErrorDetailsAction
          shows the stack trace of an error message
 class MerlotError.ShowMessageLaterRunnable
          Description of the Class
 
Field Summary
static MerlotError.ShowMessageLaterRunnable _later
          Description of the Field
static java.lang.Thread _laterThread
          Description of the Field
static boolean _showingLater
          Description of the Field
 
Fields inherited from interface org.merlotxml.merlot.MerlotConstants
ACTION_MENU_ACCELERATOR, ACTION_MENU_ICON, ACTION_NAME, ACTION_SHORT_DESCRIPTION, ACTION_SMALL_ICON, AFTER, BEFORE, ERR, INTO, UI, XML
 
Constructor Summary
MerlotError()
          init some neccessary error stuff
 
Method Summary
static void exception(java.lang.Throwable ex, java.lang.String usermsg)
          Description of the Method
static void msg(java.lang.String usermsg)
          Description of the Method
static void msg(java.lang.String usermsg, java.lang.String title)
          Description of the Method
 void quit()
          Description of the Method
static void showMessageLater(java.lang.String usermsg, java.lang.String title)
          Special version of msg that displays messages in a different thread from the calling thread (due to some nasty drag and drop event handling bugs that cause deadlocks if certain gui operations are done at dnd drop event time)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_later

public static MerlotError.ShowMessageLaterRunnable _later
Description of the Field


_laterThread

public static java.lang.Thread _laterThread
Description of the Field


_showingLater

public static boolean _showingLater
Description of the Field

Constructor Detail

MerlotError

public MerlotError()
init some neccessary error stuff

Method Detail

quit

public void quit()
Description of the Method


exception

public static void exception(java.lang.Throwable ex,
                             java.lang.String usermsg)
Description of the Method

Parameters:
ex - Description of the Parameter
usermsg - Description of the Parameter

msg

public static void msg(java.lang.String usermsg)
Description of the Method

Parameters:
usermsg - Description of the Parameter

msg

public static void msg(java.lang.String usermsg,
                       java.lang.String title)
Description of the Method

Parameters:
usermsg - Description of the Parameter
title - Description of the Parameter

showMessageLater

public static void showMessageLater(java.lang.String usermsg,
                                    java.lang.String title)
Special version of msg that displays messages in a different thread from the calling thread (due to some nasty drag and drop event handling bugs that cause deadlocks if certain gui operations are done at dnd drop event time)

Parameters:
usermsg - Description of the Parameter
title - Description of the Parameter