Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lorenzo2014-12-11 10:23:44 +0000
committerVincent Lorenzo2014-12-11 10:24:11 +0000
commit0d55ad52d8e05c4058c32185fd4c4f9f155b004f (patch)
tree335b2f97787309bb6285177f00b77832c8f6d608 /plugins/uml
parent6e341b8b5d62c96df290224f1ee05e11e7e42445 (diff)
downloadorg.eclipse.papyrus-0d55ad52d8e05c4058c32185fd4c4f9f155b004f.tar.gz
org.eclipse.papyrus-0d55ad52d8e05c4058c32185fd4c4f9f155b004f.tar.xz
org.eclipse.papyrus-0d55ad52d8e05c4058c32185fd4c4f9f155b004f.zip
454714: [Diagram] staemachine and Activity Diagram : Floating Label are centered on their parent editpart instead to be on its left - Fix label position for transition (hard coded, genmodel not modified
Diffstat (limited to 'plugins/uml')
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/src/org/eclipse/papyrus/uml/diagram/statemachine/providers/UMLViewProvider.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/src/org/eclipse/papyrus/uml/diagram/statemachine/providers/UMLViewProvider.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/src/org/eclipse/papyrus/uml/diagram/statemachine/providers/UMLViewProvider.java
index 75f5a51a848..94f03539f2f 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/src/org/eclipse/papyrus/uml/diagram/statemachine/providers/UMLViewProvider.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/src/org/eclipse/papyrus/uml/diagram/statemachine/providers/UMLViewProvider.java
@@ -899,6 +899,10 @@ public class UMLViewProvider extends AbstractProvider implements IViewProvider {
// }
Node label7001 = createLabel(edge, UMLVisualIDRegistry.getType(TransitionNameEditPart.VISUAL_ID));
label7001.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
+ Location location7001 = (Location) label7001.getLayoutConstraint();
+ location7001.setX(0);
+ location7001.setY(20);
+
Node label7002 = createLabel(edge, UMLVisualIDRegistry.getType(TransitionGuardEditPart.VISUAL_ID));
label7002.setLayoutConstraint(NotationFactory.eINSTANCE.createLocation());
Node label7003 = createLabel(edge, UMLVisualIDRegistry.getType(TransitionStereotypeEditPart.VISUAL_ID));

Back to the top