com.ptc.windchill.upgrade.modeldiff
Class Message

java.lang.Object
  extended bycom.ptc.windchill.upgrade.modeldiff.Message

class Message
extends Object


Field Summary
private static String progressMessageClearString_
           
private static int progressMessageState_
           
private static String[] progressMessageSymbols_
           
private static PrintWriter reportPrintWriter_
           
 
Constructor Summary
(package private) Message()
           
 
Method Summary
private static void clearProgressMessageIfNecessary()
          Erase last progress message
(package private) static void console(String text)
           
(package private) static void error(String text)
           
(package private) static void incrementProgressMessage()
          Update a transient message on the screen with a spinning text bar.
(package private) static void incrementProgressMessage(String message)
          Update a transient message on the screen to containing the specified message.
(package private) static void log(String text)
           
(package private) static void output(String text)
           
(package private) static void outputCaughtThrowable(Throwable t, String text)
          Insures that errors are recorded in the report, too.
(package private) static void setReportPrintWriter(PrintWriter x)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

progressMessageState_

private static int progressMessageState_

progressMessageClearString_

private static String progressMessageClearString_

progressMessageSymbols_

private static final String[] progressMessageSymbols_

reportPrintWriter_

private static PrintWriter reportPrintWriter_
Constructor Detail

Message

Message()
Method Detail

console

static void console(String text)

log

static void log(String text)

output

static void output(String text)

error

static void error(String text)

clearProgressMessageIfNecessary

private static void clearProgressMessageIfNecessary()
Erase last progress message


incrementProgressMessage

static void incrementProgressMessage()
Update a transient message on the screen with a spinning text bar. This bar will rotate 45 degrees with each invocation. This message will be written without using a line break, and will be overwritten when the "output" or "error" methods are invoked.


incrementProgressMessage

static void incrementProgressMessage(String message)
Update a transient message on the screen to containing the specified message. This message will be written without using a line break, and will be overwritten when "output" or "error" methods are invoked.

Parameters:
message - The transient message overwritten by the next actual or next transient message.

setReportPrintWriter

static void setReportPrintWriter(PrintWriter x)

outputCaughtThrowable

static void outputCaughtThrowable(Throwable t,
                                  String text)
Insures that errors are recorded in the report, too. Provides a standard look for the output.

Parameters:
t - The general exception that was encountered.
text - The string delivered to Report, the log, and, if settings allow, to the screen.