Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGéry Deloge2016-06-06 12:37:56 -0400
committerGerrit Code Review @ Eclipse.org2016-06-17 10:52:21 -0400
commit7f883ab42bf8285670e342ebcc34b8b1fdeec4bc (patch)
tree73639fb3b2ecc7b969c2631c6ae5fe8b693cd12a
parent6a48e29f6907dc9732808a4b5203a00fe154b198 (diff)
downloadorg.eclipse.papyrus-7f883ab42bf8285670e342ebcc34b8b1fdeec4bc.tar.gz
org.eclipse.papyrus-7f883ab42bf8285670e342ebcc34b8b1fdeec4bc.tar.xz
org.eclipse.papyrus-7f883ab42bf8285670e342ebcc34b8b1fdeec4bc.zip
Bug 495404: Undo action does not refresh position of ActivityParameterNode
Change-Id: Iafe4f84e7a577bb616ab600dc4611df75a62aec0 Signed-off-by: Géry Deloge <gery.deloge@cea.fr>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomActivityParameterNodeEditPart.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomActivityParameterNodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomActivityParameterNodeEditPart.java
index a7fc3664a8c..492552c5d86 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomActivityParameterNodeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/edit/part/CustomActivityParameterNodeEditPart.java
@@ -16,6 +16,7 @@ import org.eclipse.draw2d.IFigure;
import org.eclipse.draw2d.PositionConstants;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.gmf.runtime.diagram.ui.editparts.IBorderItemEditPart;
+import org.eclipse.gmf.runtime.draw2d.ui.figures.IBorderItemLocator;
import org.eclipse.gmf.runtime.gef.ui.figures.DefaultSizeNodeFigure;
import org.eclipse.gmf.runtime.gef.ui.figures.NodeFigure;
import org.eclipse.gmf.runtime.notation.View;
@@ -77,4 +78,13 @@ public class CustomActivityParameterNodeEditPart extends ActivityParameterNodeEd
}
}
+ @Override
+ public void refreshBounds() {
+ super.refreshBounds();
+ IBorderItemLocator locator = getBorderItemLocator();
+ if (locator != null) {
+ locator.relocate(getFigure());
+ }
+ }
+
}

Back to the top