Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » How to duplicate the same instance element(Duplicate same instance element in different diagrams under the same model)
How to duplicate the same instance element [message #1765624] Mon, 12 June 2017 20:34 Go to next message
Lina 20 is currently offline Lina 20Friend
Messages: 32
Registered: March 2017

I'm creating an editor. The model in the editor has some diagrams. I need to be able to have the same element instance in some diagrams. I do not add the instance element in the odesign because I need the final user to be able to duplicate the exactly same instance where the user wants to. Copy/paste does not work because it creates a copy of the instance and I need the same instance to be drawed in different diagrams.

How can I do that? Should I add a option menu in an element? or change the odesig? Or programatically?

Thank you so much for your help!

Re: How to duplicate the same instance element [message #1766468 is a reply to message #1765624] Wed, 21 June 2017 16:52 Go to previous message
Julien Dupont is currently offline Julien DupontFriend
Messages: 172
Registered: July 2009
Senior Member
Hi Lina,

Graphical elements are inevitably link to a semantic element.
If you want have the same semantic element display graphically in different diagram you can use the Reused in the Import tab.
I joined you an example as I explain.
Other solution is to defined in specification file (.odesign) a mapping (node or container or edge) on the same semantic element.


Previous Topic:Copy / Paste nodes in diagram
Next Topic:Validation event listener?
Goto Forum:

Current Time: Thu Mar 04 10:53:05 GMT 2021

Powered by FUDForum. Page generated in 0.01314 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top