Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Code Editor Context Menu
When working on a file with a code editor, you can perform a number of code search and editing operations to review the contents of the file. These options are available through the editor context menu, and can vary depending on which code editor you are using.
Access Right-click on the code text string you are working on
Options
Topic |
Detail |
See also |
---|---|---|
Go to Declaration |
Locate and highlight the declaration of a symbol in the source code. |
|
Go to Definition |
Locate and highlight the definition of a symbol in the source code (applicable to languages such as C++ and Delphi, where symbols are declared and defined in separate places). |
|
Search for '<string>' |
Display a submenu providing options to locate the selected text string in a range of locations.
|
Pre-Defined Searches Search In Files Search In Files Model Search Script Editor |
Search Intelli-sense | <list of query names> |
Perform a search on the specified string in any Intelli-sense libraries listed in the active Execution Analyzer script, and display the results in the Find in Files window, 'Intelli-sense Search' tab. Shortcut key: + |
Search Intelli-sense |
Set Debugger to Line |
(If the debugger is executing and has reached a breakpoint.) Move the execution point to the current line. Check that you do not skip over any code or declarations that affect the next section of code being debugged. |
|
Display Variable |
(If the debugger is executing.) Open the Locals window and highlight the local variable for the current point in the code. |
View the Local Variables |
Show in String Viewer |
Display the full contents of a variable string in the String Viewer. |
View Content Of Long Strings |
Create Use Case for '<string>' |
Display the 'Create Use Case For Method' dialog, through which you create a Use Case for the method containing the text string. |
Create Use Case For Method |
Breakpoint |
Display a submenu of options for creating a recording marker on the selected line of code. The recording markers you can add include:
|
Set Record Markers |
Testpoints |
Display options to add a new Testpoint, show the Testpoints Manager (Testpoints window) or edit an existing Testpoint if one or more are already defined at the selected location. (The sub-options depend on the type of code file you are reviewing.) |
Testpoint Editor The Testpoints Window |
Open (Close) IME |
Open (or close) the Input Method Editor, so that you can enter text in a selected foreign language script, such as Japanese. You set the keyboard language using the Windows Control Panel - Regional and Language Options facility. |
|
Line Numbers |
(Script Editor only.) Show or hide the code line numbers on the left hand side of the editor screen. |
|
Undo
|
These six options provide simple functions for editing the code. |
Notes
- The options in the lower half of the 'Search for <string>' submenu (after 'Search in Scripts') are configurable; you can add new search tools or remove existing ones by editing the searchProviders.xml file in the Sparx Systems > EA > Config folder - this file is in OpenSearch description document format
Learn more
- OpenSearch Description Document Format (Online Resource)
- Editing Source Code
- Compare Editors