home *** CD-ROM | disk | FTP | other *** search
/ PC User 2001 August / APC_Aug2001_CD2.iso / features / web_dev / files / mwjpp516.exe / %MAINDIR% / Tools / Misc / trace.script < prev    next >
Encoding:
Text File  |  2001-06-19  |  722 b   |  38 lines

  1. !!script
  2. // Copyright ⌐ 1997-2001 - Modelworks Software
  3. // @Created build 248 cm19981231
  4. // @Modified build 498 cm20010307
  5.  
  6. /**
  7. @Tool: trace~toggles the IDE's trace state. When the
  8. Application.trace is true the IDE and scripts write
  9. additional information to output panel.
  10. @EndTool: 
  11. @Summary: trace~toggles the IDE's trace state
  12. */
  13.  
  14. var gOutput = getOutput();
  15.  
  16. function DoUpdate(cmdUI) 
  17. {
  18.     cmdUI.setCheck(Application.trace);
  19.     cmdUI.enable(true);
  20.     return true;
  21. }
  22. function DoCommand()
  23. {
  24.     Application.trace = !Application.trace;
  25.     if (Application.trace)
  26.     {
  27.         gOutput.writeLine("Script tracing is enabled");
  28.     }
  29.     else
  30.     {
  31.         gOutput.writeLine("Script tracing is disabled");
  32.     }
  33. }
  34.  
  35.  
  36. !!/script
  37.  
  38.