Note that to display a window with an error message, this graphical handler must be registered by calling {@link ptolemy.util.MessageHandler#setMessageHandler(MessageHandler)}. For example:
GraphicalMessageHandler handler = new GraphicalMessageHandler(); GraphicalMessageHandler.setMessageHandler(handler); GraphicalMessageHandler.error("My error", new Exception("My Exception"));If setMessageHandler() is not called, then the error() call will use the default handler and possibly display the message on standard error.
This class is based on (and contains code from) the diva GUIUtilities class. @author Edward A. Lee, Steve Neuendorffer, John Reekie, and Elaine Cheong @version $Id: GraphicalMessageHandler.java,v 1.55 2007/12/07 06:24:40 cxh Exp $ @since Ptolemy II 1.0 @Pt.ProposedRating Yellow (eal) @Pt.AcceptedRating Red (reviewmoderator)
|
|
|
|
|
|