Features within the SCM# view facilitate search and navigation operations between elements within the language view and ChartView. This view is currently a read-only type view and does not support editing. A future release of Control Architect will support the development of SCM type modules using SCM# language.
Navigation and Search Operations
Bookmarks
You can add Bookmarks to the Document view to place a marker for a text line that can be be navigated using the Bookmark navigation buttons. Bookmark indicators are displayed in the Document view left margin indicator.
Search and Highlight Operations
-
You can use the
Find operation to highlight all occurrences of the entered text phrase. When the search text value changes or you click the
Find Next button all found occurrences will be highlighted. The Document view right margin indicator will display glyphs that indicate their location in the document.
-
You can select a label identifier such as a
STEP or
TRANSITION name and press the key sequence
Ctrl+F3 to highlight all occurrences of the selected label identifier in the document and auto-navigate to the next occurrence. The options in the
Find and Replace Tool Window are used as the search options when using this feature.
-
You can hold the
Ctrl key while left mouse-clicking on an identifier to highlight all its occurrences within the document.
Search Results Document Margin
The Document view contains a right margin that is used to display search results. When a search operation is performed all highlighted occurrences of this item are displayed as glyphs in the margin indicator. The position in this indicator margin indicates its position within the source. You can use the vertical Scroll bar to scroll to a glyph position. You can also left mouse-click on a glyph to automatically scroll the view to its position. If you hover your mouse cursor on a glyph a ToolTip will be displayed that provides information related to the source line where the occurrence is found.
Navigating Between Chart and SCM# Views
You can navigate to the ChartView SCM sequence block from within the SCM# source document. You can also navigate from a ChartView sequence block to its SCM# code block.
From within the SCM# document view, place the editor caret within a code block and press the key sequence Ctrl+Shift while clicking within the code block with the left mouse button to navigate to its sequence block within the ChartView.
From within the ChartView, press the same key sequence Ctrl+Shift while clicking the sequence visual block with the left mouse button to navigate to its SCM# code block in the SCM# Document view.
Printing and Saving the View
To print the view, click the Print button.
To save the view as an RTF type document file, click the Save button. Saving to an RTF document will preserve all syntax coloring.
Symbol Navigation Pane
The editor provides a Symbol Navigation pane that tracks the current sequence Handler and sequence element within the Handler where the editor caret is placed. You can also quickly navigate to a Handler and a sequence element within this handler by selecting the Handler and Sequence Element from the drop-down lists in this pane.
View the Sequence Visual Block
You can view the sequence visual block element that represents a particular code block such a TRANSITION or STEP by clicking within the code block to set the editor caret and pressing the key sequence Ctrl+B. You can move this Visual Block window by mouse clicking on an image surface in the window and dragging to a new location. If the Visual Block window is already visible and you select a new code block and press Ctrl+B, the Visual Block window will update its contents to reflect the current code block.
Source Code Comments Operations
Comments found in the sequence block configurations are translated to SCM# as code comments. These comments are enclosed within comment blocks as in /*This is a comment*/. Comment blocks form a comment region that can be expanded and collapsed. A region button is placed to the left for each source line that contains a comment. All comments are collapsed by default when viewing the SCM# code document. A collapsed code comment is indicated with the shortcut text /**/. A comment can be quickly expanded by a left mouse double-click on the comment shortcut text. To collapse the expanded text comment toggle the region button for the code line.
You can click the Toolbar button Toggle All Outlining Expansion to expand all code comments. You can also click the the Toolbar button Collapse All Comments to collapse all comments in the source document.