This class makes it easy to add a message to be displayed at runtime,
and/or a message requiring a Yes/No answer.
The message appears in a MODAL dialog so it will always get your full attention.
It is designed for development-time only. In fact every message box screams
out a message to not allow it into the release.
The class name, file name, method name and line number of the caller is automatically added to the message window.
Examples:
1) You just temporarily did something -- like commented-out some code --
and you don't want to forget to comment it back in later:
Reminder.message("Don't forget to uncomment the code here!");
2) You want to add a branch in some code, temporarily. Instead of
changing the source and recompiling again and again do the following and
determine the branching at runtime:
if(Reminder.message("Use the new improved code?"))
new_code();
else
old_code();
3) Poor Man's Debugger Add watch statements, pause execution so you can check something in the filesystem, etc. |