Community
Participate
Working Groups
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); }
The code is in org.eclipse.sirius.diagram.tools.internal.command.builders.ReconnectionCommandBuilder.getOtherEndVariableCreationTask(Map<AbstractVariable, Object>)