diff options
Diffstat (limited to 'plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java')
-rw-r--r-- | plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java index babfbb5dfd0..d3063197edd 100644 --- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java +++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.sequence/custom-src/org/eclipse/papyrus/uml/diagram/sequence/figures/DurationLinkFigure.java @@ -14,6 +14,7 @@ package org.eclipse.papyrus.uml.diagram.sequence.figures; import org.eclipse.draw2d.ColorConstants; +import org.eclipse.draw2d.ConnectionRouter; import org.eclipse.draw2d.Graphics; import org.eclipse.draw2d.PolylineConnection; import org.eclipse.draw2d.PolylineDecoration; @@ -189,7 +190,7 @@ public class DurationLinkFigure extends UMLEdgeFigure { public boolean containsPoint(int x, int y) { Rectangle topLine = new Rectangle(getStart(), getTopLineEnd()); topLine.expand(SELECTION_TOLERANCE, SELECTION_TOLERANCE); - if (topLine.contains(x, y)){ + if (topLine.contains(x, y)) { return true; } @@ -233,6 +234,11 @@ public class DurationLinkFigure extends UMLEdgeFigure { return bounds; } + @Override + public void setConnectionRouter(ConnectionRouter cr) { + // Skip; this figure doesn't support routers/bendpoints + } + /** * <p> * Set the orientation of the arrow (Orientation#VERTICAL or Orientation#HORIZONTAL). |