Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/DefaultSemanticEditPolicy.java')
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/DefaultSemanticEditPolicy.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/DefaultSemanticEditPolicy.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/DefaultSemanticEditPolicy.java
index 27aba0fa7ca..1583b58b0e7 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/DefaultSemanticEditPolicy.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpolicies/DefaultSemanticEditPolicy.java
@@ -107,6 +107,7 @@ public class DefaultSemanticEditPolicy extends SemanticEditPolicy {
String type = ((Connector) model).getType();
if (type != null) {
result.setParameter(RequestParameterConstants.VIEW_VISUAL_ID, type);
+ result.setParameter(RequestParameterConstants.AFFECTED_VIEW, model);
}
}
}
@@ -241,14 +242,14 @@ public class DefaultSemanticEditPolicy extends SemanticEditPolicy {
private Command getDefaultSemanticCommand(IEditCommandRequest req, Object context) {
try {
IClientContext clientContext = TypeContext.getContext(getEditingDomain());
-
+
IElementEditService commandService;
if (context != null) {
commandService = ElementEditServiceUtils.getCommandProvider(context, clientContext);
} else {
commandService = ElementEditServiceUtils.getCommandProvider(((IGraphicalEditPart) getHost()).resolveSemanticElement(), clientContext);
}
-
+
if (commandService != null) {
ICommand semanticCommand = commandService.getEditCommand(req);
if ((semanticCommand != null) && (semanticCommand.canExecute())) {

Back to the top