home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1997-1998 - Modelworks Software
-
- /**
- @Tool: unfoldAllChildren~opens all children of the currently selected
- parent line.
- @EndTool:
- @Summary: unfoldAllChildren~opens all child lines
- */
-
-
- function DoCommand()
- {
- var editor = getActiveEditor();
- if (editor)
- {
- var lines = editor.getLines();
- var selection = editor.GetSelection();
- var childIndex = lines.getFirstChildLineIndex(selection.startLineIndex);
- while (childIndex != -1)
- {
- lines.unfoldLine(childIndex);
- childIndex = lines.getNextSiblingLineIndex(childIndex);
- }
- lines.update("Unfold All Children");
- }
- }
-
- !!/Script
-
-