Bug 535076 - Reconnect modify source edge creation variable.
Summary: Reconnect modify source edge creation variable.
Status: NEW
Alias: None
Product: Sirius
Classification: Modeling
Component: Diagram (show other bugs)
Version: 5.1.1   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: triaged
Depends on:
Blocks:
 
Reported: 2018-05-24 12:02 EDT by Jessy Mallet CLA
Modified: 2018-10-26 11:38 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jessy Mallet CLA 2018-05-24 12:02:16 EDT
By using "Reconnect" tool (defined in simple VSM) on diagram, the source edge creation variable is modified (particularly subVariables relation.
This behavior has been observe by calling a preCommitListener using EditinDomain.isReadOnly (Resource). 

VSM should be considered as immutable.

This is the Sirius code which modify the relation subVariables.

@Override
public void execute() throws MetaClassNotFoundException, FeatureNotFoundException {
   // We declare the OtherEndVariable as a subVariable of
   // SourceView
   tool.getSourceView().getSubVariables().add(otherEndVariable);
   variables.put(otherEndVariable, otherEndValue);
}
Comment 1 Pierre Guilet CLA 2018-06-05 07:39:02 EDT
The code is in org.eclipse.sirius.diagram.tools.internal.command.builders.ReconnectionCommandBuilder.getOtherEndVariableCreationTask(Map<AbstractVariable, Object>)