MessageSvc.I Interface

com.bea.ide.core
MessageSvc.I Interface

public static interface MessageSvc.I

The interface for the message service

Enclosing class

MessageSvc

Method Summary

public void
debugLog(String sMessage)
Log a debug message.
public void
displayError(String sError, int level)
Display an error.
public PrintStream
getLogPrintStream()
Get the printstream that writes to the log
public void
logException(Throwable t)
Output the given throwable to the log.
public boolean
showConfirmDialog(String strTitle, String strMessage)
Display a message to the user in a dialog.
public void
showInfoDialog(String strTitle, String strMessage)
Display a message to the user in a message dialog.
public boolean
showYesNoDialog(String strTitle, String strMessage)
Display a message to the user in a dialog.
public void
writeToLog(String strMessage)
Write the specified string to the log file

Method Detail

debugLog(String) Method

public void debugLog(String sMessage)
Log a debug message.

Parameters

sMessage
message to log

displayError(String, int) Method

public void displayError(String sError, 
                         int level)
Display an error. Display mechanism will be determined by the level

Parameters

sError
string error message to display
level
level to display

getLogPrintStream() Method

public PrintStream getLogPrintStream()
Get the printstream that writes to the log


logException(Throwable) Method

public void logException(Throwable t)
Output the given throwable to the log. This will print a stacktrace.


showConfirmDialog(String, String) Method

public boolean showConfirmDialog(String strTitle, 
                                 String strMessage)
Display a message to the user in a dialog. This will display an okay and a cancel button.

Returns

true if the user selects the ok button, false if the user selects the cancel button, or if the frame service hasn't started.

showInfoDialog(String, String) Method

public void showInfoDialog(String strTitle, 
                           String strMessage)
Display a message to the user in a message dialog. If the frame service has not yet started, this will write to the log instead. This will be shown as an informational message.


showYesNoDialog(String, String) Method

public boolean showYesNoDialog(String strTitle, 
                               String strMessage)
Display a message to the user in a dialog. This will display a Yes and a No button.

Returns

true if the user selects the Yes button, false if the user selects the No button, or if the frame service hasn't started.

writeToLog(String) Method

public void writeToLog(String strMessage)
Write the specified string to the log file