|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.buildmonitor.BuildMonitorImpl
public class BuildMonitorImpl
The main class of the application.
Field Summary |
---|
Constructor Summary | |
---|---|
BuildMonitorImpl()
|
Method Summary | |
---|---|
java.awt.Image |
getDialogsDefaultIcon()
Returns the default icon to be displayed by dialogs opened by monitors |
java.lang.String |
getMessage(java.lang.String theMessageKey)
Get a message identified by its key in the application resource bundle. |
protected java.lang.String |
getStackTrace(java.lang.Throwable theThrowable)
Return the stack trace of a throwable as a String |
void |
panic(java.lang.String theErrorMessage)
The method to call when an unrecoverable error occurs in the application and you want to display your own message (instead of a generic one).It displays your error message to the end user and then exit. |
void |
panic(java.lang.Throwable theUnexpectedError)
The method to call when an unrecoverable error occurs in the application. |
void |
reportConfigurationUpdatedToBeTakenIntoAccountImmediately()
Report an update of the monitor configuration to be taken into account immediately |
void |
reportMonitoringException(MonitoringException theMonitoringException)
Report a monitoring exception (this method is called by build monitors to notify that a monitoring exception occured) |
void |
run()
TODO: DOCUMENTS ME ! |
protected void |
showErrorMessage(java.lang.String theErrorMessage)
displays an error message in a dialog. |
void |
updateBuildStatus(java.util.List<BuildReport> theBuildsStatus)
TODO: TRES TRES CHAUD... |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public BuildMonitorImpl()
Method Detail |
---|
public void run()
run
in interface java.lang.Runnable
public void panic(java.lang.String theErrorMessage)
panic
in interface BuildMonitor
theErrorMessage
- the error message to display to the end user.public void panic(java.lang.Throwable theUnexpectedError)
panic
in interface BuildMonitor
theUnexpectedError
- the Throwable that was unexpected.public java.lang.String getMessage(java.lang.String theMessageKey)
getMessage
in interface BuildMonitor
theMessageKey
- the message key
public java.awt.Image getDialogsDefaultIcon()
getDialogsDefaultIcon
in interface BuildMonitor
public void reportMonitoringException(MonitoringException theMonitoringException)
reportMonitoringException
in interface BuildMonitor
theMonitoringException
- the monitoring exception to display to the end userpublic void reportConfigurationUpdatedToBeTakenIntoAccountImmediately()
reportConfigurationUpdatedToBeTakenIntoAccountImmediately
in interface BuildMonitor
public void updateBuildStatus(java.util.List<BuildReport> theBuildsStatus)
updateBuildStatus
in interface BuildMonitor
theBuildsStatus
- a List that contains the each build report to use to update the
global status.protected void showErrorMessage(java.lang.String theErrorMessage)
theErrorMessage
- the error message to displayprotected java.lang.String getStackTrace(java.lang.Throwable theThrowable)
theThrowable
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |