home *** CD-ROM | disk | FTP | other *** search
- !!script
- // Copyright ⌐ 1997-2001 - Modelworks Software
- // @Created build 248 cm19981231
- // @Modified build 498 cm20010307
-
- /**
- @Tool: trace~toggles the IDE's trace state. When the
- Application.trace is true the IDE and scripts write
- additional information to output panel.
- @EndTool:
- @Summary: trace~toggles the IDE's trace state
- */
-
- var gOutput = getOutput();
-
- function DoUpdate(cmdUI)
- {
- cmdUI.setCheck(Application.trace);
- cmdUI.enable(true);
- return true;
- }
- function DoCommand()
- {
- Application.trace = !Application.trace;
- if (Application.trace)
- {
- gOutput.writeLine("Script tracing is enabled");
- }
- else
- {
- gOutput.writeLine("Script tracing is disabled");
- }
- }
-
-
- !!/script
-
-