Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sirius » Edge Reconnection Tool
Edge Reconnection Tool [message #1769666] Wed, 02 August 2017 13:57 Go to next message
Ludovic Stumme is currently offline Ludovic StummeFriend
Messages: 3
Registered: August 2017
Junior Member
Hi all,

In a diagram I have 3 nodes, let say A, B, and C.
I created an edge from B to A.
Now I want this edge going from C to A.

So I've created an Edge Reconnect Edition Tool with Reconnection Kind as 'Reconnect Source'.
In this case, I should have as variable :
A : element
B : source
C : target

But actually I have :
A : Nothing
B : source, element
C : target

Moreover, in the Begin section, when I start with a "Change Context" set to var:element, the context seems to be null.

Is it a bug, a known bug or an error from me ?

Thanks for your answers....

Re: Edge Reconnection Tool [message #1769680 is a reply to message #1769666] Wed, 02 August 2017 15:28 Go to previous messageGo to next message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 252
Registered: July 2009
Senior Member
Hi,

I join a sample of project with reconnect tool (extracted from Sirius test [1]). Hope it helps.

Regards,

Laurent

[1] http://git.eclipse.org/c/sirius/org.eclipse.sirius.git/tree/plugins/org.eclipse.sirius.tests.swtbot/data/unit/reconnect/bendpointStability


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Re: Edge Reconnection Tool [message #1769754 is a reply to message #1769680] Thu, 03 August 2017 07:35 Go to previous messageGo to next message
Ludovic Stumme is currently offline Ludovic StummeFriend
Messages: 3
Registered: August 2017
Junior Member
Hi Laurent,

Thank you for your quick answer.
Here is a simple sample to illustrate the problem.
The ecore model is very simple :
index.php/fa/30248/0/

The goal here is to create a kind of bidirectional dependency diagram.
Having created a sample diagram, the result is as follow :
index.php/fa/30249/0/

Edge reconnection from target works fine.
But edge reconnection from source produce the following result :
index.php/fa/30250/0/

Please find in the following zip, the ecore model, the sample model and finally the odesign file.

Hope you can help me....



Best regards,

Ludovic
Re: Edge Reconnection Tool [message #1769756 is a reply to message #1769754] Thu, 03 August 2017 07:39 Go to previous messageGo to next message
Ludovic Stumme is currently offline Ludovic StummeFriend
Messages: 3
Registered: August 2017
Junior Member
Oups sorry for images size, but I don't know how to fix it....
Re: Edge Reconnection Tool [message #1769819 is a reply to message #1769756] Thu, 03 August 2017 16:33 Go to previous message
Laurent Redor is currently offline Laurent RedorFriend
Messages: 252
Registered: July 2009
Senior Member
Is the dependsOn reference is EOpposite of referencedBy? If this is the case why not set it in metamodel? It will simplify the reconnect tool.

For precision, the variable source corresponds to the source of the reconnect and the variable target corresponds to the target of the reconnect. For example, if you reconnect the edge from Model_2 to Model_3, Model_2 is the source and Model_3 is the target. In your case, I think you also need to use the variable otherend (see documentation https://www.eclipse.org/sirius/doc/specifier/diagrams/Diagrams.html#edge_tools).


Laurent Redor - Obeo

Need training or professional services for Sirius?
http://www.obeodesigner.com/sirius
Previous Topic:Select widget for Map.Entry classes
Next Topic:Question about Variable Filter
Goto Forum:
  


Current Time: Mon Apr 06 22:32:45 GMT 2020

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

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

Back to the top