|
Re: How to copy an element while keeping its layout? [message #1833988 is a reply to message #1833932] |
Thu, 29 October 2020 14:14 |
|
Hi.
This is not currently supported. It is much more complex that it may look given the very open-ended nature of Sirius modelers.
It might be possible to create your own custom tool, say "Duplicate Element" with a more constrained semantic, add it as an entry in the context menu (see https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#popup_menu) and implement the tool through a Java service which duplicates both the graphical elements with their positions/sizes *and* the underlying semantic elements (adjusting the references between the copies of course).
It seems possible, but non trivial and requires some knowledge of the internal of Sirius (how the semantic models, the Sirius diagram elements and the GMF views relate to each other).
Regards,
Pierre-Charles
Pierre-Charles David - Obeo
Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
|
|
|
|
Powered by
FUDForum. Page generated in 0.03286 seconds