Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
MDG_View
Topics
Topic |
Detail |
See also |
---|---|---|
Details |
MDG_View enables the Add-In to display user specified code elements. This function is called by Enterprise Architect when the user asks to view a particular code element. This enables the Add-In to present that element in its own way, usually in a code editor.
|
|
Syntax:
Function MDG_View(Repository As EA.Repository, PackageGuid As String, CodeID as String) As Long
The MDG_View function syntax contains the following elements:
Parameter |
Type |
Direction |
Description |
---|---|---|---|
Repository |
EA.Repository |
IN |
An EA.Repository object representing the currently open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.
|
PackageGuid |
String |
IN |
The GUID identifying the Enterprise Architect Package sub-tree that is controlled by the Add-In.
|
CodeID |
String |
IN |
Identifies the code element in the following format: <type>ElementPart<type>ElementPart... where each element is proceeded with a token identifying its type: @ -namespace # - Class $ - attribute % - operation
For example if a user has selected the m_Name attribute of Class1 located in namespace Name1, the class ID would be passed through in the following format:
@Name1#Class1%m_Name
|
Return Value:
Return a non-zero value to indicate that the Add-In has processed the request. Returning a zero value results in Enterprise Architect employing the standard viewing process which is to launch the associated source file.