From c850305a4860b009d54142cc76562fd2fde20829 Mon Sep 17 00:00:00 2001 From: vlorenzo Date: Thu, 30 Jan 2014 12:42:39 +0100 Subject: 418586: [Connector] [UML] [SysML] [CompositeStructureDiagram] Problems with UML/SysML Connector https://bugs.eclipse.org/bugs/show_bug.cgi?id=418586 --- .../uml/service/types/command/ConnectorReorientSemanticCommand.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/command/ConnectorReorientSemanticCommand.java b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/command/ConnectorReorientSemanticCommand.java index 2034a61fa5c..73f5a73ca0b 100644 --- a/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/command/ConnectorReorientSemanticCommand.java +++ b/plugins/uml/org.eclipse.papyrus.uml.service.types/src/org/eclipse/papyrus/uml/service/types/command/ConnectorReorientSemanticCommand.java @@ -147,9 +147,12 @@ public class ConnectorReorientSemanticCommand extends EditElementCommand { if(newRole != null && oppositeRole != null) { //the 2 roles must be not be equals - if(newRole == oppositeRole) { + /* + if(newRole == oppositeRole) { // ALG: This is wrong for a connector connecting the same port of two different parts! return false; } + */ + //UML Standart, p.181 : [3] The ConnectableElements attached as roles to each ConnectorEnd owned by a Connector must be roles -- cgit v1.2.3