diff options
author | Mickael ADAM | 2015-01-22 17:03:15 +0000 |
---|---|---|
committer | Mickael ADAM | 2015-01-22 17:03:15 +0000 |
commit | 2c5b53314e2d53b7537ffa0c13d2ffb6874bd638 (patch) | |
tree | 087ec298d030e2f1ea90463ee50385f92993dbd4 | |
parent | ff509d11c7fa896a53c88136a9f945c4be9dfa46 (diff) | |
download | org.eclipse.papyrus-2c5b53314e2d53b7537ffa0c13d2ffb6874bd638.tar.gz org.eclipse.papyrus-2c5b53314e2d53b7537ffa0c13d2ffb6874bd638.tar.xz org.eclipse.papyrus-2c5b53314e2d53b7537ffa0c13d2ffb6874bd638.zip |
457695: [Activity Diagram] Refresh issue when resizing some Nodes (SVG)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=457695
-Add refresh on the handle notification event of resizing
Change-Id: Iec30a403619d3137e9d83672f15e1b5fe52ea1d5
Signed-off-by: Mickael ADAM <mickael.adam@ALL4TEC.net>
-rw-r--r-- | plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/ShapeDisplayCompartmentEditPart.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/ShapeDisplayCompartmentEditPart.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/ShapeDisplayCompartmentEditPart.java index 2542fb88e8a..1d82c8e4b1b 100644 --- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/ShapeDisplayCompartmentEditPart.java +++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/editpart/ShapeDisplayCompartmentEditPart.java @@ -113,6 +113,21 @@ public class ShapeDisplayCompartmentEditPart extends ResizableCompartmentEditPar } /** + * @see org.eclipse.gmf.runtime.diagram.ui.editparts.ResizableCompartmentEditPart#handleNotificationEvent(org.eclipse.emf.common.notify.Notification) + * + * @param notification + */ + @Override + protected void handleNotificationEvent(Notification notification) { + Object feature = notification.getFeature(); + if (NotationPackage.eINSTANCE.getSize_Width().equals(feature) || NotationPackage.eINSTANCE.getSize_Height().equals(feature) || NotationPackage.eINSTANCE.getLocation_X().equals(feature) || NotationPackage.eINSTANCE.getLocation_Y().equals(feature)) { + // Bug 457695: refresh shape when resizing + refresh(); + } + super.handleNotificationEvent(notification); + } + + /** * this method is used to set the ratio of the figure. * pay attention if the ratio is true, the only figure is displayed * |