Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/src/org/eclipse/papyrus/sysml/diagram/internalblock/edit/policy/CustomDefaultSemanticEditPolicy.java')
-rw-r--r--plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/src/org/eclipse/papyrus/sysml/diagram/internalblock/edit/policy/CustomDefaultSemanticEditPolicy.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/src/org/eclipse/papyrus/sysml/diagram/internalblock/edit/policy/CustomDefaultSemanticEditPolicy.java b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/src/org/eclipse/papyrus/sysml/diagram/internalblock/edit/policy/CustomDefaultSemanticEditPolicy.java
index 7c5f1c648eb..008d39285a3 100644
--- a/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/src/org/eclipse/papyrus/sysml/diagram/internalblock/edit/policy/CustomDefaultSemanticEditPolicy.java
+++ b/plugins/sysml/diagram/org.eclipse.papyrus.sysml.diagram.internalblock/src/org/eclipse/papyrus/sysml/diagram/internalblock/edit/policy/CustomDefaultSemanticEditPolicy.java
@@ -26,10 +26,10 @@ import org.eclipse.papyrus.sysml.diagram.internalblock.provider.CustomGraphicalT
import org.eclipse.papyrus.sysml.diagram.internalblock.provider.ElementTypes;
import org.eclipse.papyrus.sysml.diagram.internalblock.provider.GraphicalTypeRegistry;
import org.eclipse.papyrus.uml.diagram.common.helper.CreateOrShowExistingElementHelper;
-import org.eclipse.papyrus.uml.diagram.composite.edit.commands.CommentAnnotatedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.composite.edit.commands.CommentAnnotatedElementReorientCommand;
-import org.eclipse.papyrus.uml.diagram.composite.edit.commands.ConstraintConstrainedElementCreateCommand;
-import org.eclipse.papyrus.uml.diagram.composite.edit.commands.ConstraintConstrainedElementReorientCommand;
+import org.eclipse.papyrus.uml.service.types.command.CommentAnnotatedElementsCreateCommand;
+import org.eclipse.papyrus.uml.service.types.command.CommentAnnotatedElementsReorientCommand;
+import org.eclipse.papyrus.uml.service.types.command.ConstraintConstrainedElementsCreateCommand;
+import org.eclipse.papyrus.uml.service.types.command.ConstraintConstrainedElementsReorientCommand;
import org.eclipse.papyrus.uml.service.types.element.UMLElementTypes;
/**
@@ -60,11 +60,11 @@ public class CustomDefaultSemanticEditPolicy extends DefaultSemanticEditPolicy {
protected Command getCreateRelationshipCommand(CreateRelationshipRequest req) {
if (ElementTypes.COMMENT_ANNOTATED_ELEMENT == req.getElementType()) {
- return getGEFWrapper(new CommentAnnotatedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ return getGEFWrapper(new CommentAnnotatedElementsCreateCommand(req));
}
if (ElementTypes.CONSTRAINT_CONSTRAINED_ELEMENT == req.getElementType()) {
- return getGEFWrapper(new ConstraintConstrainedElementCreateCommand(req, req.getSource(), req.getTarget()));
+ return getGEFWrapper(new ConstraintConstrainedElementsCreateCommand(req));
}
String newEdgeGraphicalType = registry.getEdgeGraphicalType(req.getElementType());
@@ -101,11 +101,11 @@ public class CustomDefaultSemanticEditPolicy extends DefaultSemanticEditPolicy {
String reconnectedViewType = (reconnectedView != null) ? reconnectedView.getType() : org.eclipse.papyrus.infra.gmfdiag.common.providers.IGraphicalTypeRegistry.UNDEFINED_TYPE;
if (ElementTypes.COMMENT_ANNOTATED_ELEMENT.getSemanticHint().equals(reconnectedViewType)) {
- return getGEFWrapper(new CommentAnnotatedElementReorientCommand(req));
+ return getGEFWrapper(new CommentAnnotatedElementsReorientCommand(req));
}
if (ElementTypes.CONSTRAINT_CONSTRAINED_ELEMENT.getSemanticHint().equals(reconnectedViewType)) {
- return getGEFWrapper(new ConstraintConstrainedElementReorientCommand(req));
+ return getGEFWrapper(new ConstraintConstrainedElementsReorientCommand(req));
}
return super.getReorientReferenceRelationshipCommand(req);

Back to the top