|
Re: Container drop and container creation [message #1791427 is a reply to message #1790908] |
Fri, 29 June 2018 08:33 |
|
Hello
Your purpose is to create instance of class so I make the supposition that you 've already defined the mapping and all what is needed to display your entities in a diagram.
Then you may use either ContainerCreation Tool to crate a new instance or Container Drop tool to display in your diagram an existing instance
You can read the documentation about container drop : https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#containers
Do not forget to add some model operations
For example, if your source selection is from the model explorer, just add a ChangeContext operation that do nothing (var:element)
You have some example of Container Drop tool here: https://github.com/eclipse/ecoretools/blob/master/org.eclipse.emf.ecoretools.design/description/ecore.odesign
Regards
Laurent
Laurent Fasani - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.05176 seconds