summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLaurent Wouters2014-01-16 04:09:00 (EST)
committerLaurent Wouters2014-01-21 09:55:02 (EST)
commitf466e72f9b93d3dd400fa9bd8a90d651a8d488bf (patch)
treebfd11917356f042f0f14bc66c4dc924a7086565e
parentfabf55281ee6f5da81c2688e6ae1e7bb21126e59 (diff)
downloadorg.eclipse.papyrus-f466e72f9b93d3dd400fa9bd8a90d651a8d488bf.zip
org.eclipse.papyrus-f466e72f9b93d3dd400fa9bd8a90d651a8d488bf.tar.gz
org.eclipse.papyrus-f466e72f9b93d3dd400fa9bd8a90d651a8d488bf.tar.bz2
425584: [Component Diagram] Usage and Realization Links are solid (should be dashed)
Removed dead code https://bugs.eclipse.org/bugs/show_bug.cgi?id=425584 Change-Id: I9aba9160bc6f3c089f3c646a515e04788a7d7367 Signed-off-by: Laurent Wouters <laurent.wouters@cea.fr>
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/edge/DashedEdgeFigure.java50
1 files changed, 0 insertions, 50 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/edge/DashedEdgeFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/edge/DashedEdgeFigure.java
index bb24dc6..2db5b50 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/edge/DashedEdgeFigure.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.common/src/org/eclipse/papyrus/uml/diagram/common/figure/edge/DashedEdgeFigure.java
@@ -14,10 +14,8 @@
package org.eclipse.papyrus.uml.diagram.common.figure.edge;
import org.eclipse.draw2d.Graphics;
-import org.eclipse.draw2d.PolygonDecoration;
import org.eclipse.draw2d.PolylineDecoration;
import org.eclipse.gmf.runtime.draw2d.ui.figures.WrappingLabel;
-import org.eclipse.swt.graphics.Color;
/**
* This is a custom figure to represents a default edge. This code was used in
@@ -121,52 +119,4 @@ public class DashedEdgeFigure extends UMLEdgeFigure {
setLineDash(dashes);
}
-
- /**
- * Sets initial style for this figure. This is the style used for full
- * arrows: ------|>
- *
- * @param lineWidth
- * the width of the link
- */
- // @unused
- protected void setStyle(int lineWidth) {
- setStyle();
- // set link appearence
- setLineWidth(lineWidth);
- }
-
- /**
- * Sets initial style for this figure. This is the style used for full
- * arrows: ------|>
- *
- * @param lineWidth
- * the width of the link
- * @param foregroundColor
- * the foreground color of the link
- * @param backgroundColor
- * the background color of the link
- */
- // @unused
- protected void setStyle(Color backgroundColor, Color foregroundColor, int lineWidth) {
- // set the target arrow style
- PolygonDecoration dec = new PolygonDecoration();
- dec.setScale(15, 5);
- dec.setBackgroundColor(backgroundColor);
- dec.setLineWidth(1);
- if(arrow) {
- setTargetDecoration(dec);
- }
- // set link appearence
- setLineWidth(lineWidth);
- setLineStyle(Graphics.LINE_CUSTOM); // line drawing style
- setForegroundColor(foregroundColor);
-
- // set dashes
- for(int i = 0; i < 10; i++) {
- dashes[i] = 5;
- }
- setLineDash(dashes);
- }
-
}