Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2014-02-13 11:31:31 -0500
committerVincent Lorenzo2014-02-13 11:31:31 -0500
commit85417d655d1499d06b2a2fc7365eb1a586ece526 (patch)
tree3dcf4a65783d89c1a97e9a2f920d67493780cb36
parentceb58dbea4bcc9c8b059219a8ffd3ae7336b47d3 (diff)
downloadorg.eclipse.papyrus-85417d655d1499d06b2a2fc7365eb1a586ece526.tar.gz
org.eclipse.papyrus-85417d655d1499d06b2a2fc7365eb1a586ece526.tar.xz
org.eclipse.papyrus-85417d655d1499d06b2a2fc7365eb1a586ece526.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