summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoutheina BANNOUR2014-03-05 06:19:25 (EST)
committerBoutheina BANNOUR2014-03-06 07:43:57 (EST)
commit9a4e0e268a1a1e0a237875ac7dfca9666db374ec (patch)
tree678384fb27d9196aa14f11229680ad259aa58fdc
parentb578a23a2ba4f2c69ac2acd7dfc66fd167303173 (diff)
downloadorg.eclipse.papyrus-9a4e0e268a1a1e0a237875ac7dfca9666db374ec.zip
org.eclipse.papyrus-9a4e0e268a1a1e0a237875ac7dfca9666db374ec.tar.gz
org.eclipse.papyrus-9a4e0e268a1a1e0a237875ac7dfca9666db374ec.tar.bz2
429651: [Sequence Diagram] old annotated element is not removed after
constraint/duration link reorient https://bugs.eclipse.org/bugs/show_bug.cgi?id=429651 Signed-off-by: Boutheina BANNOUR <boutheina.bannour@gmail.com>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java
index 25a167b..b3bdb09 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/command/AnnotatedLinkEditCommand.java
@@ -118,11 +118,11 @@ public class AnnotatedLinkEditCommand extends AbstractTransactionalCommand {
if(oldSourceElement instanceof Comment) {
((Comment)oldSourceElement).getAnnotatedElements().remove(oldTargetElement);
} else if(oldSourceElement instanceof DurationObservation) {
- ((DurationObservation)oldSourceElement).getEvents().remove(targetElement);
+ ((DurationObservation)oldSourceElement).getEvents().remove(oldTargetElement);
} else if(oldSourceElement instanceof TimeObservation) {
((TimeObservation)oldSourceElement).setEvent(null);
} else if(oldSourceElement instanceof Constraint) {
- ((Constraint)oldSourceElement).getConstrainedElements().remove(targetElement);
+ ((Constraint)oldSourceElement).getConstrainedElements().remove(oldTargetElement);
}
}
if(sourceElement instanceof Comment) {