Enterprise Architect Add-in Framework Documentation
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.
Namespace: EAAddinFrameworkAssembly: EAAddinFramework (in EAAddinFramework.dll) Version: 1.0.4064.9398
Syntax
C# |
---|
public virtual long MDG_View(
Repository Repository,
string PackageGuid,
string CodeID
) |
Visual Basic |
---|
Public Overridable Function MDG_View ( _
Repository As Repository, _
PackageGuid As String, _
CodeID As String _
) As Long |
Visual C++ |
---|
public:
virtual long long MDG_View(
Repository^ Repository,
String^ PackageGuid,
String^ CodeID
) |
Parameters
- Repository
- Type: Repository
An EA.Repository object representing the currently open Enterprise Architect model.
Poll its members to retrieve model data and user interface status information.
- PackageGuid
- Type: System..::..String
The GUID identifying the Enterprise Architect package sub-tree that is controlled by the Add-In.
- CodeID
- Type: System..::..String
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.
See Also