Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/ActivityCNContentCompartmentItemSemanticEditPolicy.java')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/ActivityCNContentCompartmentItemSemanticEditPolicy.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/ActivityCNContentCompartmentItemSemanticEditPolicy.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/ActivityCNContentCompartmentItemSemanticEditPolicy.java
index f1845610db2..d87bd59e30a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/ActivityCNContentCompartmentItemSemanticEditPolicy.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/src/org/eclipse/papyrus/uml/diagram/activity/edit/policies/ActivityCNContentCompartmentItemSemanticEditPolicy.java
@@ -280,6 +280,12 @@ public class ActivityCNContentCompartmentItemSemanticEditPolicy extends UMLBaseI
req.setContainmentFeature(containmentFeature);
return getGEFWrapper(getSemanticCreationCommand(req));
}
+ if (UMLElementTypes.StartObjectBehaviorAction_3113 == requestElementType) {
+ // adjust the containment feature
+ EReference containmentFeature = UMLPackage.eINSTANCE.getActivity_OwnedNode();
+ req.setContainmentFeature(containmentFeature);
+ return getGEFWrapper(getSemanticCreationCommand(req));
+ }
return super.getCreateCommand(req);
}
}

Back to the top