Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorptessier2014-06-02 04:31:32 -0400
committerptessier2014-06-02 04:31:32 -0400
commit91223cdd788217a737501d5450c27b537983935f (patch)
tree6941cc48b45dc6e9d7fd5fe3d518e11a72e04006
parent6f4b0588d8286d7fef340305d9313432d8661697 (diff)
downloadorg.eclipse.papyrus-91223cdd788217a737501d5450c27b537983935f.tar.gz
org.eclipse.papyrus-91223cdd788217a737501d5450c27b537983935f.tar.xz
org.eclipse.papyrus-91223cdd788217a737501d5450c27b537983935f.zip
436335: [Diagram] transition of statemachine are dashed
https://bugs.eclipse.org/bugs/show_bug.cgi?id=436335 Merge branch 'master' of ssh://ptessier@git.eclipse.org:29418/papyrus/org.eclipse.papyrus Change-Id: I2de439bd0b2af0be08a07d624e41ee960ad8c6e1
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/figures/TransitionFigure.java14
1 files changed, 3 insertions, 11 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/figures/TransitionFigure.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/figures/TransitionFigure.java
index c691425e012..ea0a102a3b8 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/figures/TransitionFigure.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/figures/TransitionFigure.java
@@ -11,19 +11,16 @@
*/
package org.eclipse.papyrus.uml.diagram.statemachine.custom.figures;
-import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.PolylineDecoration;
-import org.eclipse.papyrus.uml.diagram.common.figure.edge.DashedEdgeFigure;
+import org.eclipse.papyrus.uml.diagram.common.figure.edge.UMLEdgeFigure;
-public class TransitionFigure extends DashedEdgeFigure {
+public class TransitionFigure extends UMLEdgeFigure {
/**
* Creates a new UMLEdgeFigure.
*/
public TransitionFigure() {
super();
- setupDefaultStyle();
- arrow = true;
}
/**
@@ -34,11 +31,6 @@ public class TransitionFigure extends DashedEdgeFigure {
PolylineDecoration dec = new PolylineDecoration();
dec.setScale(15, 5);
dec.setLineWidth(1);
- if (arrow) {
- this.setTargetDecoration(dec);
- } else {
- this.setTargetDecoration(null);
- }// arrow at target endpoint
- this.setLineStyle(Graphics.LINE_CUSTOM); // line drawing style
+ this.setTargetDecoration(dec);
}
}

Back to the top