summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Marques2014-07-09 07:38:51 (EDT)
committerCamille Letavernier2014-07-21 08:22:51 (EDT)
commit09adec7c19b4076b782d4bd0b8cec635ab6e2807 (patch)
treed3ce32be80d19307ad90094275814edc5160f813
parentfb27ec77a9d408088dd8e3c0f0e3c89d4ded3fd8 (diff)
downloadorg.eclipse.papyrus-09adec7c19b4076b782d4bd0b8cec635ab6e2807.zip
org.eclipse.papyrus-09adec7c19b4076b782d4bd0b8cec635ab6e2807.tar.gz
org.eclipse.papyrus-09adec7c19b4076b782d4bd0b8cec635ab6e2807.tar.bz2
Overriding method Reference.copy in CS_Reference.refs/changes/61/29661/2
Now, it creates copy of a CS_Reference Change-Id: I42e0580da82ed12892e810795f635e81a340f48b Signed-off-by: Bruno Marques <bruno.marques@cea.fr>
-rw-r--r--extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Reference.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Reference.java b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Reference.java
index 543a3f4..3166cc5 100644
--- a/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Reference.java
+++ b/extraplugins/moka/org.eclipse.papyrus.moka.composites/generated/org/eclipse/papyrus/moka/composites/Semantics/CompositeStructures/StructuredClasses/CS_Reference.java
@@ -15,6 +15,7 @@ package org.eclipse.papyrus.moka.composites.Semantics.CompositeStructures.Struct
// Imports
import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Reference;
+import org.eclipse.papyrus.moka.fuml.Semantics.Classes.Kernel.Value;
import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.BasicBehaviors.Execution;
import org.eclipse.papyrus.moka.fuml.Semantics.CommonBehaviors.Communications.SignalInstance;
import org.eclipse.uml2.uml.Operation;
@@ -69,4 +70,13 @@ public class CS_Reference extends Reference {
// to compositeReferent
this.compositeReferent.sendOut(signalInstance, interactionPoint);
}
+
+ @Override
+ public Value copy() {
+ // Create a new reference with the same referent and composite referent as this reference.
+ CS_Reference newValue = new CS_Reference() ;
+ newValue.referent = this.referent ;
+ newValue.compositeReferent = this.compositeReferent;
+ return newValue;
+ }
}