Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas FAUVERGUE2018-09-14 09:54:45 -0400
committerNicolas FAUVERGUE2018-09-14 09:55:59 -0400
commit0a118dc921494e5901956ebae12408bd20fba102 (patch)
tree5d732856b18c224c95ea088948136e62b5971309 /plugins
parent913270db4d26b2b356ad836e68f4d4e58407c24c (diff)
downloadorg.eclipse.papyrus-0a118dc921494e5901956ebae12408bd20fba102.tar.gz
org.eclipse.papyrus-0a118dc921494e5901956ebae12408bd20fba102.tar.xz
org.eclipse.papyrus-0a118dc921494e5901956ebae12408bd20fba102.zip
Bug 514126 - [ActivityDiagram][ActivityParameterNode] It should be
possible to put this node on the top of the activity Change-Id: Ic636d93765acddf0e6d47ca5b42010391f65e550 Signed-off-by: Pauline DEVILLE <pauline.deville@cea.fr> Signed-off-by: Nicolas FAUVERGUE <nicolas.fauvergue@cea.fr>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/locator/ActivityParameterNodePositionLocator.java25
1 files changed, 0 insertions, 25 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/locator/ActivityParameterNodePositionLocator.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/locator/ActivityParameterNodePositionLocator.java
index df4299cecab..d26990f91b6 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/locator/ActivityParameterNodePositionLocator.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.activity/custom-src/org/eclipse/papyrus/uml/diagram/activity/locator/ActivityParameterNodePositionLocator.java
@@ -20,7 +20,6 @@ import org.eclipse.draw2d.PositionConstants;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
-import org.eclipse.gmf.runtime.diagram.ui.figures.BorderItemLocator;
import org.eclipse.papyrus.uml.diagram.common.locator.AdvancedBorderItemLocator;
import org.eclipse.papyrus.uml.diagram.common.locator.ISideAffixedNodeBorderItemLocator;
@@ -71,30 +70,6 @@ public class ActivityParameterNodePositionLocator extends AdvancedBorderItemLoca
}
/**
- * Find the closest side when x,y is inside parent.
- *
- * @param proposedLocation
- * @param parentBorder
- * @return draw constant
- */
- public static int findClosestSideOfParent(Rectangle proposedLocation, Rectangle parentBorder) {
-
- int side = BorderItemLocator.findClosestSideOfParent(proposedLocation, parentBorder);
-
- // relocate side for North
- if (side == PositionConstants.NORTH) {
- Point parentCenter = parentBorder.getCenter();
- Point childCenter = proposedLocation.getCenter();
- if (childCenter.x < parentCenter.x) {
- return PositionConstants.WEST;
- } else {
- return PositionConstants.EAST;
- }
- }
- return side;
- }
-
- /**
* Ensure the suggested location actually lies on the parent boundary. The
* side takes precedence.
*

Back to the top