From 100a5434c72a618a34e0cec91ede195fd11e465f Mon Sep 17 00:00:00 2001 From: Steve Monnier Date: Wed, 10 Jan 2024 15:50:10 -0800 Subject: [PATCH] #2062 Handle dnd of ComponentExchange with allocated FunctionExchange Drag and dropping a port of a functional exchange that is allocated to a ComponentExchange will not remove its allocation anymore. --- .../polarsys/capella/core/sirius/analysis/FaServices.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/plugins/org.polarsys.capella.core.sirius.analysis/src/org/polarsys/capella/core/sirius/analysis/FaServices.java b/core/plugins/org.polarsys.capella.core.sirius.analysis/src/org/polarsys/capella/core/sirius/analysis/FaServices.java index 93b8608771..2769ccb155 100644 --- a/core/plugins/org.polarsys.capella.core.sirius.analysis/src/org/polarsys/capella/core/sirius/analysis/FaServices.java +++ b/core/plugins/org.polarsys.capella.core.sirius.analysis/src/org/polarsys/capella/core/sirius/analysis/FaServices.java @@ -3211,8 +3211,7 @@ public EObject dndABFunctionPort(FunctionPort port, NamedElement oldContainer, N } moveFunctionalExchanges(port); - removeComponentExchangeAllocations(getFunctionalExchanges(port)); - + return port; } @@ -3457,8 +3456,6 @@ protected void moveFunctionalExchanges(FunctionPort port) { for (FunctionalExchange exchange : functionalExchanges) { moveFunctionalExchange(exchange); } - - removeComponentExchangeAllocations(functionalExchanges); } /**