home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- function DoCommand()
- {
- var output = getOutput();
- output.clear();
-
- var menu = getMenu("&View", ".java");
- if (menu)
- {
- menu.appendItem("Test Command",
- "\\Script\\Examples\\testDoCommand.script",
- "Item to test DoCommand");
- }
-
- output.writeLine("Test Command item added to the View menu for a Java document");
-
- var menu = newMenu("&Test", ".java", "&Tools");
-
- output.writeLine("Test menu added after the Tools menu for a Java document");
- }
-
- !!/Script
-