home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ool.zip / OOL / source / xjvcmsgh.cpp < prev    next >
C/C++ Source or Header  |  1997-04-04  |  2KB  |  54 lines

  1. #include <xheaders.h>
  2. #include "XJavaEnv.h"
  3. #include "XJvCMsgH.h"
  4.  
  5.  
  6. /*@ XJavaConsoleMessageHandler::ShowMessage()
  7. @group java/misc
  8. @remarks Whenever the Java runtime system passes a string to the console, this
  9.         function is beeing called. If you want to process console messages, you
  10.         have to override this function.
  11. @parameters XString& msg The console message
  12. */
  13.  
  14.  
  15. /*@ XJavaConsoleMessageHandler::ShowConsole(void)
  16. @group java/misc
  17. @remarks Makes the Java console visible.
  18. @returns An error code is return; possible values are:
  19.                   <b>JAVA_OK</b>                  no error
  20.                   <b>JAVA_INVALID_APPLET</b>      inavlid applet code given
  21.                   <b>JAVA_INVALID_CONTEXT</b>     inavlid applet context given
  22.                   <b>JAVA_INVALID_PARAMETER</b>   invalid parameter
  23.                   <b>JAVA_ALREADY_INITIALIZED</b> Java runtime system already initialized
  24.                   <b>JAVA_OUT_OF_MEMORY</b>       out of memory
  25.                   <b>JAVA_EXCEPTION_OCCURRED</b>  Java exception occurred
  26.                   <b>JAVA_NOT_INITIALIZED</b>     Java runtime system not initialized
  27.                   <b>JAVA_INTERNAL_ERROR</b>      internal Java error
  28. */
  29. int XJavaConsoleMessageHandler::ShowConsole(void)
  30. {
  31.     return (int) jeConsoleShow(TRUE);
  32. }
  33.  
  34.  
  35.  
  36. /*@ XJavaConsoleMessageHandler::HideConsole(void)
  37. @group java/misc
  38. @remarks Makes the Java console invisible.
  39. @returns An error code is return; possible values are:
  40.                   <b>JAVA_OK</b>                  no error
  41.                   <b>JAVA_INVALID_APPLET</b>      inavlid applet code given
  42.                   <b>JAVA_INVALID_CONTEXT</b>     inavlid applet context given
  43.                   <b>JAVA_INVALID_PARAMETER</b>   invalid parameter
  44.                   <b>JAVA_ALREADY_INITIALIZED</b> Java runtime system already initialized
  45.                   <b>JAVA_OUT_OF_MEMORY</b>       out of memory
  46.                   <b>JAVA_EXCEPTION_OCCURRED</b>  Java exception occurred
  47.                   <b>JAVA_NOT_INITIALIZED</b>     Java runtime system not initialized
  48.                   <b>JAVA_INTERNAL_ERROR</b>      internal Java error
  49. */
  50. int XJavaConsoleMessageHandler::HideConsole(void)
  51. {
  52.     return (int) jeConsoleShow(FALSE);
  53. }
  54.