Bug 447715

Summary: Ease the specifcation of edge reconnection tools
Product: [Modeling] Sirius Reporter: Maxime Porhel <maxime.porhel>
Component: DiagramAssignee: Project Inbox <sirius.diagram-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P3 Keywords: triaged
Version: 1.0.1   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 525257    

Description Maxime Porhel CLA 2014-10-17 10:31:24 EDT
There is currently a hidden variable named otherEnd which is the non reconnected end of the edge. 

It was created to avoid unreadable expression to identify what needs to be done on reconnect tools with 'reconnectionKind = both'.

But it could be usefull to display it in available variables for source only and target only reconnect tools especially when the edge is defined by a Relation Based Edge Mapping with several instances on the diagram. In those cases, all the edges have the same target element: the semantic element of the source node, and to identify the other end semantic, the specifier needs to known the Sirius Diagram metamodel and to add it to the DiagramDescription.metamodels feature. Then he can write requests like [edgeView.targetNode.oclAsTypeOf(EdgeTarget).target/] (which could require additional elements to avoid Acceleo compilation warning or errors).

But if we provide in the proposals or in the variables displayed in the VSM, two variable nonReconnectedEnd and nonReconnectedEndView (names to review later), it will ease the spefication of reconnection tools and avoid many questions.