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 'Services' page of the Analyzer Script.
This feature is available from Enterprise Architect Release 14.1.
AccessRibbon > Code > 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 thedetails 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 Add. 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 it's 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 it's 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 Database Library'. Enterprise Architect will then source its Intelli-sense information from the databases listed in the 'Libraries' section.