Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnsgar Radermacher2016-10-18 12:23:22 -0400
committerAnsgar Radermacher2016-10-18 12:26:06 -0400
commitb5c955b52886d1b4785adc1b7a26fb04848af243 (patch)
tree37372c5a6eb8c0f68fe98b2a2eb1c89ffba5e68a
parentefa8ae48277368be2683fc3b93e75650b5806fd0 (diff)
downloadorg.eclipse.papyrus-b5c955b52886d1b4785adc1b7a26fb04848af243.tar.gz
org.eclipse.papyrus-b5c955b52886d1b4785adc1b7a26fb04848af243.tar.xz
org.eclipse.papyrus-b5c955b52886d1b4785adc1b7a26fb04848af243.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