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
In this page you must choose the weaving metamodel or the weaving metamodel extensions. There are two options:
- load the entire metamodel from an .ecore file, or
- select a set of weaving metamodel extensions in KM3. The use must select the metamodel extensions and click on
the "Load selected file(s)" button. The metamodel is validated when clicking in the next button.
The extensions defined in your "extension" plug-in are previously loaded in the list of options.
Other extensions from the workskpace are added using the "Browse to select a KM3 file" button.
The default base metamodel extension is available in the file
"mw_base_extension.km3".

Step 2
After selecting the metamodel extensions you should specify a weaving model to be loaded.
To do this , 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 "amw" extension (.ecore extensions are also accepted to keep compatibility).
The file will be placed in the container.
- If you want to weave an existing model, you can enter his
name or browse into the file system.
- Choose a weaving model panel (extension of weaving panel). The
default extension is "DefaultWeavingPanelExtension". This panel is the default implementation for the weaving (middle) panel.
- Choose the type of the weaving model you use (extension to the WModel class). If there is only one
extension of WModel, the choice is disabled. The Default base
extension element is "Model".
If the combos have only one choice, they are disabled (grayed).
Step 3
You must choose left and right metamodels and/or models.
Depending on the metamodel extension, it is possible to have more than two 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 the text field 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 workspace. 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 base 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 (as
seem in the following picture) and the user can start to define
the metamodels relationships.