Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Code Editor Toolbar

The toolbar buttons in the Source Code editor enable you to change, view and interact with the code contained in the editor. The function of each button, from left  to right, is described below:

The Toolbar:

SourceTool

Topics

Topic

Detail

See also

Toolbar Options

Structure Tree - shows or hides the element hierarchy panel (the left panel of the Source Code editor)
Line Numbers - shows or hides the line numbers against the lines of code
Source Code Engineering Properties - displays options to select Source Code Engineering pages of the Options dialog, from which you can configure display and behavior options for source code engineering:
Syntax Highlighting options
DDL and Code Editor options
Code Engineering options
Code Editor Key Bindings
Editor Functions - provides quick access to the following functions:
Open Corresponding File - opens the header or implementation file associated with the currently-open file
Go to Matching Brace - for a selected opening or closing brace, highlights the corresponding closing or opening brace in the pair
Go to Line - displays a small dialog on which you select the number of the line to highlight; click on the OK button to move the cursor to that line
Cursor History Previous - the Source Code viewer keeps a history of the previous 50 cursor positions, creating a record when the cursor is moved either more than 10 lines away from its previous position, or in a find-and-replace operation; the menu option moves the cursor to the position in the immediately-previous cursor history record
Cursor History Next - moves the cursor to the position in the immediately-following cursor history record
Record Macro - record the subsequent keystrokes to be saved as a macro
Stop Recording and Save Macro - stop recording the keystrokes and specify a name for the macro, on the Save Macro dialog
Play Macro - execute the macro to repeat the saved keystrokes, if necessary selecting the macro from the Open Macro dialog
Toggle Line Comment - comments out (//) or re-establishes the code for each full line in which text is highlighted
Toggle Stream Comment - inserts a stream comment (/* */) at the cursor position or comments out the highlighted characters and lines, or re-establishes the commented text as code
Toggle Whitespace Characters - shows or hides the spacing characters: --> (tab space) and . (character space)
Toggle EOL Characters - shows or hides the end-of-line characters: CR (carriage return) and LF (line feed)
Save Source and Resynchronize Class - saves the source code and resynchronizes the Class
Code Templates - accesses the Code Templates Editor
Find in Project Browser - for a selected line of code, highlights the appropriate structure in the Project Browser; if there is more than one possibility the Possible Matches dialog displays, listing the occurrences of the appropriate structure from which you can select the required one
Search in Files - searches for the selected object name in associated files and displays the results of the search on the File Search window
Search in Model - searches for the selected text  throughout the model, and displays the results of the search on the Model Search window
Go to Declaration - locates the declaration of a symbol in the source code
Go to Definition - locates the definition of a symbol in the source code (applicable to languages where symbols are declared and defined in separate files, such as C++, Delphi)
Autocomplete List - displays the autocompletion list of possible values; double-click on a value to select it
Parameter Information - when the cursor is between the parentheses of an operation's parameter list, displays the operation's signature, highlighting the current parameter
Find Current Class in Project Browser - displays the name of the currently-selected Class in the code, and highlights that name in the Project Browser; if there is more than one possibility the Possible Matches dialog displays, listing the occurrences of the Class from which you can select the required one
Find Member - displays the name of the currently-selected attribute or method in the code, and highlights that name in the Project Browser; if there is more than one possibility the Possible Matches dialog displays, listing the occurrences of the feature from which you can select the required one

 

 

 

Source Code Engineering Options
 

Editor Language Properties
Options - Code Editors
Source Code Options
Code Editor Key Bindings

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Code Templates Editor

 

 

 

Find in Files

Model Search

Notes

The Record Macro function disables Intellisense while the macro is being recorded
You can assign key strokes to execute the macro, instead of using the toolbar drop-down and Open Macro dialog

 

Learn more