home *** CD-ROM | disk | FTP | other *** search
- !!Script
- // Copyright ⌐ 1999 - Modelworks Software
- // @Modified build 497 cm20010225
-
- /**
- @Tool: mark~sets a bookmark for the line containing the
- current selection in the active editor. The bookmark
- @EndTool:
- @Summary: mark~sets a bookmark for the current line
- */
-
- function DoCommand()
- {
- var bookmarkMap = getMapFile("Bookmarks");
-
- var editor = getActiveEditor();
- if (editor)
- {
- var selection = editor.getSelection();
- var bookmark = editor.newBookmark(selection.startLineIndex);
-
- if (bookmark)
- {
- setGlobal(" $current mark", bookmark);
- bookmarkMap.add(bookmark.hashKey, bookmark);
- }
- }
- }
-
- !!/Script
-