Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2014-02-13 16:31:31 +0000
committerVincent Lorenzo2014-02-14 11:57:51 +0000
commitc553888a3bac8d0b16914489a75182333fd99b61 (patch)
tree9f11824ca903ac1f64b1337b61fc311288e9cf1e
parentf90d9d05af5e120cbb7aeb057c24729a887cc4f2 (diff)
downloadorg.eclipse.papyrus-c553888a3bac8d0b16914489a75182333fd99b61.tar.gz
org.eclipse.papyrus-c553888a3bac8d0b16914489a75182333fd99b61.tar.xz
org.eclipse.papyrus-c553888a3bac8d0b16914489a75182333fd99b61.zip
424005: [Diagram] Enhancements for snap to grid
https://bugs.eclipse.org/bugs/show_bug.cgi?id=424005 BorderNodeEditPart must be snap using center of figure only.
-rw-r--r--plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/snap/PapyrusDragBorderNodeEditPartTrackerEx.java2
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/BorderNodeEditPart.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/snap/PapyrusDragBorderNodeEditPartTrackerEx.java b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/snap/PapyrusDragBorderNodeEditPartTrackerEx.java
index 496e2de73dc..07b976595bc 100644
--- a/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/snap/PapyrusDragBorderNodeEditPartTrackerEx.java
+++ b/plugins/infra/gmfdiag/org.eclipse.papyrus.infra.gmfdiag.common/src/org/eclipse/papyrus/infra/gmfdiag/common/snap/PapyrusDragBorderNodeEditPartTrackerEx.java
@@ -29,7 +29,7 @@ public class PapyrusDragBorderNodeEditPartTrackerEx extends PapyrusDragEditParts
* @param sourceEditPart
*/
public PapyrusDragBorderNodeEditPartTrackerEx(EditPart sourceEditPart) {
- this(sourceEditPart, false, true, true);
+ this(sourceEditPart, false, false, true);
}
/**
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/BorderNodeEditPart.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/BorderNodeEditPart.java
index 05e05763d54..6960e7966f6 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/BorderNodeEditPart.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/editparts/BorderNodeEditPart.java
@@ -200,6 +200,6 @@ public abstract class BorderNodeEditPart extends BorderedBorderItemEditPart impl
*/
@Override
public DragTracker getDragTracker(final Request request) {
- return new PapyrusDragBorderNodeEditPartTrackerEx(this, false, true, true);
+ return new PapyrusDragBorderNodeEditPartTrackerEx(this);
}
}

Back to the top