Declaring a connector

To declare a model connector:

  1. Open the src source folder (e.g. com.sodius.mdw.example.library/src) of the connector plugin.
  2. Click File > New > File.
  3. Type connectors.xml in the File name field and click Finish.
  4. Add a modelReader or a modelWriter XML element in this file.

    <?xml version=

    "1.0"

    encoding=

    "UTF-8"

    ?

    > <connectors> <modelReader metamodel=

    "library"

    name=

    "MyReader2"

    uriType=

    "file"

    class=

    "com.sodius.mdw.example.library.MyReader"

    > <fileExtension description=

    "XML files"

    extension=

    "xml"

    /> </modelReader> </connectors>

You must then make sure this connectors.xml file will be part of the build process:

  1. Open the file build.properties (e.g. com.sodius.mdw.example.library/build.properties).
  2. Select the Build tab.
  3. Select the library '.' in the Runtime Information section.
  4. Check Include the selected library in the binary build.
  5. Check connectors.xml in the Binary Build section.
  6. Click File > Save.

Refer to Eclipse documentation to get more information about plugins and build process.

Related reference
Connector XML file format