Importing a metamodel
To import a metamodel:
- Click File > Import.
- Select the Metamodel item and click Next.
- Type the name of the plugin project to create (e.g.
com.sodius.mdw.example.library
)
in the Project name field, and click Next
- Choose a type of metamodel importer (e.g. Ecore Importer):
- Ecore: handles EMF metamodels (
*.ecore
).
- UML 2.1: handles metamodels defined in a UML 2.1 XMI file (
*.xmi
and *.uml
).
- XML Schema: converts an XML schema to a metamodel (
*.xsd
or *.wsdl
).
Click Next.
- Type the file which contains the metamodel data to read and click Next.
- Type the required metamodel information and click Finish.
MDWorkbench analyzes the metamodel and generates a set of Java classes that defines the contents of the metamodel.