Prev | Next |
Code Miner Libraries
Code Miner libraries are managed in Enterprise Architect using the Analyzer Script Editor. These Libraries are a collection of Code Miner databases, one of which would normally exist for each framework or project. The Editor allows new databases to be created, and existing databases to be added, updated or removed. Together, these databases form the Code Miner Library used by the Intelli-sense features of Enterprise Architect. The library can be used locally, or it can be deployed to a server location where it can service multiple clients. You select the scenario to use on the 'Code Miner Service' page of the Analyzer Script.
This feature is available from Enterprise Architect Release 14.1.

Access
On the Execution Analyzer window, locate and double-click on the required script - the script editor dialog will display. On that dialog, select the 'Code Miner > Libraries' page.
Ribbon |
Execute > Tools > Analyzer, or Develop > Preferences > Analyzer > Edit Analyzer Scripts |
Creating a new Database
Use the 'New' button to create a new database. In the new dialog, enter the parent folder of the project source code, select the programming language and enter the destination path for the Code Miner database. When you click the
details of the build are displayed in the log window.
When the process is complete press the 'Add' button to add the newly created database to the library.
Adding an existing Database
Select an existing Code Miner database using the "..." selection button in the database path field.
(Code Miner databases have the .CDB file extension), then click on the
. Details about the database are listed in the library. The information presented displays the programming language grammar used to build the database. Also shown is the code base path parsed during the build and whether the parsing process was applied recursively through any sub directories.Updating a Database
To update a single Code Miner database, select it from the list and choose 'Update Selected' from its context menu. Code Miner will recreate the database from the updated code base.
Removing a Database
To remove a single Code Miner database, select it from the list and choose 'Remove Selected' from its context menu.
Configuring Enterprise Architect to use a Code Miner Library
In an Enterprise Architect Analyzer Script, choose the 'Code Miner Service' page and select 'Use Library'. Enterprise Architect then source its Intelli-sense information from the databases listed in the 'Libraries' section of the currently active Analyzer Script.
