Adding a model connector
You can define a new model reader/writer to connect your metamodel to
an external modeling source not natively supported by MDWorkbench.
Using open APIs, you can for example :
- read a proprietary file format,
- connect to a database,
- use COM APIs to query a modeling tool,
- etc.
There are two ways to add a model connector:
- Add an embedded connector:
an embedded connector is a model connector that is defined in the same plugin project that the related metamodel.
This is the simpliest way to add a connector. But it implies you have access to the source code of the metamodel plugin
(you can't add an embedded connector to a metamodel delivered with MDWorkbench for example).
- Add an external connector:
an external connector is a model connector that is defined in its own plugin, not part of the metamodel plugin.
This is the way you can add a connector when you don't own the source code of the metamodel plugin
(a metamodel delivered with MDWorkbench for example),
or when you want to make a clear distinction between the source code of a metamodel and of a connector.
The connector can then be tested and deployed.