Creating a new weaving model
To create a new Model Weaver section, you must choose in the wizards
page: Model Weaver wizard in the New -> Other menu
Step 1
You must choose one or more weaving extensions (of metamodel). This operation is made
by adding extension from the top list to bottom list.
By default, extensions defined in your "extension" plug-in are in the list (source : plug-in).
You can add your local extensions (source : workspace) with "Browsing" button.
The default base metamodel extension is available in the file
"mw_base_ext.km3".

If selected extensions are not validated, you can't click on "next" button.
Step 2
After selecting the metamodel extensions you should specify a new
weaving model.
To make this operation, you must:
- Specify a folder (or container) for the weaving model
file.
- Choose a weaving model file.
- If the file is new, enter its name with "ecore" or "xmi"
extension.
The file will be placed in the container.
- If you want to weave an existing model (which it is not
initialized in your workspace or your container), you can enter his
name or browse into the file system.
The model will be copied and pasted into the container
- Choose a weaving model panel (extension of weaving panel). The
default extension is "DefaultWeavingPanelExtension"
- Choose the weaving model that you use. If there is only one
sub-type of WModel, the choice is disabled. The Default base
extension element is "Model".
If a combo (panel or wmodel) have only one choice, it is disabled (grayed).
Step 3
You must choose left and right metamodels and/or models.
To do this operation, you should for each model/metamodel :
- Click on "Edit selected model", a new window will open to enter
(meta)model information.
- Choose the name of woven metamodel if input is not
disabled (input is disabled when we get the name directly in the
metamodel defintion)
- Choose a woven metamodel panel (extension of woven panel). The
default extension is "DefaultWovenPanelExtension"
- Choose the weaving model reference element (WModelRef) that you
use. If
there is only one sub-type of WModelRef, the choice is disabled. The Default base
extension element is "ModelRef"
- Choose a woven metamodel file : you can enter its name or
browse into the system file. The metamodel is not copy-pasted into the
workspace (unlike the weaving model that is copied or created into the
workspace).
- To weave a model, click on the "Model" option and the text edit
will be enabled. When weaving a model it is mandatory to also inform
its metamodel.
Buttons "Add a model" and "Remove selelected model" are grayed because we use the default basic extension.
In this extension, you have a "leftModel" reference and a "rightModel" reference but you haven't got a reference which is many.
After clicking into the "Finish" button
a new weaving model will be created in the Model Weaver Perspective (as
seem in the following picture) and the user can start to define
the metamodels relations.