summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoratischenko2014-06-04 05:16:57 (EDT)
committeratischenko2014-06-04 05:16:57 (EDT)
commit28e9676bad82b31d9b4ad4c1bfe85c1ca2c58c15 (patch)
treeec8d16c1465feb4e27a8b000f833b3913995b24e
parent7f8625fb2e9ca13b351011c506c32470b607cb3f (diff)
downloadorg.eclipse.papyrus-28e9676bad82b31d9b4ad4c1bfe85c1ca2c58c15.zip
org.eclipse.papyrus-28e9676bad82b31d9b4ad4c1bfe85c1ca2c58c15.tar.gz
org.eclipse.papyrus-28e9676bad82b31d9b4ad4c1bfe85c1ca2c58c15.tar.bz2
[412844] - Fix for renaming CallBehaviorActionrefs/changes/14/27914/1
Signed-off-by: atischenko <ticher777@gmail.com>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/src/org/eclipse/papyrus/uml/diagram/interactionoverview/parser/CustomCallBehaviorActionParser.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/src/org/eclipse/papyrus/uml/diagram/interactionoverview/parser/CustomCallBehaviorActionParser.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/src/org/eclipse/papyrus/uml/diagram/interactionoverview/parser/CustomCallBehaviorActionParser.java
index 6b7f716..704f3d1 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/src/org/eclipse/papyrus/uml/diagram/interactionoverview/parser/CustomCallBehaviorActionParser.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.interactionoverview/src/org/eclipse/papyrus/uml/diagram/interactionoverview/parser/CustomCallBehaviorActionParser.java
@@ -21,7 +21,7 @@ import org.eclipse.gmf.runtime.emf.commands.core.command.CompositeTransactionalC
import org.eclipse.papyrus.infra.emf.utils.EMFHelper;
import org.eclipse.papyrus.uml.diagram.activity.parser.custom.CallBehaviorActionParser;
import org.eclipse.uml2.uml.CallBehaviorAction;
-import org.eclipse.uml2.uml.Interaction;
+import org.eclipse.uml2.uml.NamedElement;
import org.eclipse.uml2.uml.UMLPackage;
public class CustomCallBehaviorActionParser extends CallBehaviorActionParser {
@@ -76,8 +76,8 @@ public class CustomCallBehaviorActionParser extends CallBehaviorActionParser {
}
final CompositeTransactionalCommand command = new CompositeTransactionalCommand(editingDomain, "Set Values"); //$NON-NLS-1$
if(element instanceof CallBehaviorAction) {
- final Interaction interactionUse = (Interaction)(((CallBehaviorAction)element).getBehavior());
- command.compose(getModificationCommand(interactionUse, UMLPackage.eINSTANCE.getNamedElement_Name(), newString));
+ final NamedElement namedElement = (((CallBehaviorAction)element).getBehavior());
+ command.compose(getModificationCommand(namedElement, UMLPackage.eINSTANCE.getNamedElement_Name(), newString));
}
return command;
}