Creating a weaving element
These classes are abstract so you must extend them for creating
instances.
The Default
base extension is an example of extension that you can use. The
default base extension has standard functionalities for creating
instances of classes that extend these abstract classes. In the
following text we describe this standard behavior (left and right
model/metamodel, left and right links end).
Creating WModel,
WModelRef andWModelElement instances
If you use the default extension (of Initialization), you can't create
sub-types of WModel, WModelRef, WModelElement :
this is done automatically at the initialization of your new weaving
model.
Creating WLinkEnd instances
1. You may create a WLinkEnd doing as
follow :
- Select the WModel and
right-click on it.
- Choose "New Child" and click on subtype of WLink
- Select the WLink and
right-click
- Choose "New Child" and click on WLinkEnd
- Select the WLinkEnd element and
right-click
- Choose "Weaving element" and choose the model/metamodel that you
want
to link
- Click on the subtype on the choosen element of model/metamodel
2. You may also use the "New sibling" action on the popup Menu.
3. You use the "Drag and Drop from woven to weaving" when a children of
WLink is
created. You can do as follows:
- Select an element in left or right model/metamodel
- Drag and drop this element on the subtype of WLink
or
- Create a new WLinkEnd
- Select an element in left or right model/metamodel
- Drag and drop this element on new WLinkEnd
The weaver allows you to choose "left" or "right" WLinkEnd.
4. You use the "Drag ans Drop from woven to woven" when the subtype
of WLink is
selected. You can do as follows:
- Select an element in left or right model/metamodel
- Drag and drop this element on another element
The weaver allows you to choose "left" or "right" WLinkEnd for source
and target.
Two new sub-types of WLinkEnd are created.
Creating WAssociatonEnd instances
You can create an instance WAssociatonEnd by
doing as follow :
- Select the WModel element and
right-click
- Choose "New Child" and click on the WAssociation descendant
- Select the instance of WAssociation element
and right-click
- Choose "New Child" and click on the WAssociationEnd descendant
- In properties, choose the "relatedLink"
If you use the "Drag ans Drop" when subtype of WAssociation is
created, you can do as follows:
- Select instance of WLink
- Drag and drop this element on the subtype of WAssociation
or
- Create a new WAssociationEnd
- Select instance of WLink
- Drag and drop this element on the new created WAssociationEnd