summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoutheina BANNOUR2014-03-07 08:24:51 (EST)
committerBoutheina BANNOUR2014-03-07 08:24:51 (EST)
commit85838ba78ed5c20048a329f0084bc1d837842ea8 (patch)
tree29a848863f43694f043f6bb1d68e9767b9fb5563
parent96c969a23f37f99de331462eccd99151b8152292 (diff)
downloadorg.eclipse.papyrus-85838ba78ed5c20048a329f0084bc1d837842ea8.zip
org.eclipse.papyrus-85838ba78ed5c20048a329f0084bc1d837842ea8.tar.gz
org.eclipse.papyrus-85838ba78ed5c20048a329f0084bc1d837842ea8.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 429574: [Sequence Diagram] old annotated element is not removed after comment link reorient https://bugs.eclipse.org/bugs/show_bug.cgi?id=429574 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.java6
1 files changed, 3 insertions, 3 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 404efc6..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
@@ -116,13 +116,13 @@ public class AnnotatedLinkEditCommand extends AbstractTransactionalCommand {
}
if(oldSourceElement != null) {
if(oldSourceElement instanceof Comment) {
- ((Comment)oldSourceElement).getAnnotatedElements().remove(targetElement);
+ ((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) {