Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2016-10-18 16:23:22 +0000
committerGerrit Code Review @ Eclipse.org2016-10-19 09:39:08 +0000
commit9e4a22122a5dbed3f4209c72b289f95b4817cc89 (patch)
tree12a6963d6988d0d3d6bdc56688899adfcd1228d0
parent5717e5ff33e74718dbd2dab3aaf56b1cdfa82ea1 (diff)
downloadorg.eclipse.papyrus-9e4a22122a5dbed3f4209c72b289f95b4817cc89.tar.gz
org.eclipse.papyrus-9e4a22122a5dbed3f4209c72b289f95b4817cc89.tar.xz
org.eclipse.papyrus-9e4a22122a5dbed3f4209c72b289f95b4817cc89.zip
Bug 345882 - [StateMachine Diagram] The syntax "Trigger[Guard]/Effect" is not displayed on the transition
- Fix retrieval of semantic element from adapter
-rw-r--r--plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/parsers/TransitionPropertiesParser.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/parsers/TransitionPropertiesParser.java b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/parsers/TransitionPropertiesParser.java
index ff4ca342925..71e0dd91e4a 100644
--- a/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/parsers/TransitionPropertiesParser.java
+++ b/plugins/uml/diagram/org.eclipse.papyrus.uml.diagram.statemachine/custom-src/org/eclipse/papyrus/uml/diagram/statemachine/custom/parsers/TransitionPropertiesParser.java
@@ -159,7 +159,7 @@ public class TransitionPropertiesParser implements IParser, ISemanticParser {
// If it is not possible to adapt directly the element
// as an EObject then it might be possible to first retrieve
// the view and then obtain the EObject that is behind the view
- if(semanticElement == null && view != null){
+ if(!(semanticElement instanceof Transition) && view != null) {
semanticElement = view.getElement();
}
if (semanticElement instanceof Transition && view != null) {

Back to the top