|
|
|
|
|
Re: Diificulties to create a node [message #1791378 is a reply to message #1791367] |
Thu, 28 June 2018 09:10  |
Eclipse User |
|
|
|
In your metamodel, Workstation is linked to Organisation via a composition. It means that when you create a new Workstation it must be attached to an existing Organisation.
If Workstations and Organisations are displayed with Nodes linked with Edges (see orga-node.png) you will have a problem with your creation tool : if the user click on the diagram background, you don't know to which Organisation the new Workstation should be attached (you have to select an arbitrary Organisation, for example the first one, which is not intuitive for the end user of your tool).
To represent Organisations, I suggest that you replace the Node by a Container containing Workstation nodes (see orga-container.png) . Then your tool will know which organisation is the owner = the one on which the user has clicked. The expression of the ChangeContext becomes very simple "var:self" (see odesign.png).
[Updated on: Thu, 28 June 2018 09:16] by Moderator
|
|
|
Powered by
FUDForum. Page generated in 0.30489 seconds