Copy and paste a graphical container with a representation [message #1842103] |
Wed, 09 June 2021 06:28  |
Eclipse User |
|
|
|
I have a representation where processing modules are defined as Containers and the input/output ports are Nodes on the border of these Containers.
Some of these modules can be created as macro-modules. A macro-module appears as normal module in the root representation ("RB design" in the figure) but if I do double click, I open it and I can see the internal representation ("Module desing" in figure). This internal representation is created the first time I open the macro-module.
My problem is that when I copy a macro-module, the default behavior of sirius is to copy the macro-module and its content (i.e. all sub-modules), but it doesn't copy the related representation ("Module design").
Only if I do a double-click on the copied marco-module a new "Module design" representation is created (as default operation in my VSP) and I can found all the submodules with their connection (but with a random displacement).
How can I copy also the representation with a simple copy&paste?
I think I have to add "New Element Edition" => "Paste" and map it to the macro-module, but it's not to clear which operation I can use for copying the representation.
|
|
|
|
Re: Copy and paste a graphical container with a representation [message #1842201 is a reply to message #1842161] |
Fri, 11 June 2021 10:12  |
Eclipse User |
|
|
|
Hi Maxime,
my aim is to copy in the new element also the representation of the original element (I think that representation is the same thing of layout).
In the figure, in the tree of project, the original element (the "Generic Container Module Custom Container Module" above) has associated the representation with the name "Module Designer". The copied element has all the content of original element except the "Module Designer" representation that is missing. When I do copy&paste I'd like to copy also this information.
As you mentioned problably there are some java api for doing this kind of things (and some hints could be very useful), but I cannot find a javadoc of sirius classes on the web.
I tried to build it on my own, following the instruction of page https://wiki.eclipse.org/Sirius/Build#Javadoc but after the command "mvn clean install javadoc:aggregate" (and 15 minutes) I had an error for a missing package (I don't remember exacly the error message).
Is there an easier way to get the sirius javadoc?
Thank you
|
|
|
Powered by
FUDForum. Page generated in 0.03873 seconds