Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCamille Letavernier2014-03-07 14:28:44 +0000
committerCamille Letavernier2014-03-07 14:29:27 +0000
commit6873b36b667f24becf904abfb0ea9c2d9e9d560b (patch)
tree5e055c5f46e39684e0b7e2dfefa07ab1979a79ef /plugins/uml
parent0f8a8b394bb4122e87b2f0405f1c582d7d0f2e7c (diff)
parent85838ba78ed5c20048a329f0084bc1d837842ea8 (diff)
downloadorg.eclipse.papyrus-6873b36b667f24becf904abfb0ea9c2d9e9d560b.tar.gz
org.eclipse.papyrus-6873b36b667f24becf904abfb0ea9c2d9e9d560b.tar.xz
org.eclipse.papyrus-6873b36b667f24becf904abfb0ea9c2d9e9d560b.zip
Integrate contribution from B. Bannour
Diffstat (limited to 'plugins/uml')
-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 404efc6e6b7..b3bdb092270 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) {

Back to the top