Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuergen Haug2018-02-27 08:33:51 +0000
committerJuergen Haug2018-02-27 08:33:51 +0000
commit7554a3d167df4ff70473e9b80576238b6ce38d6f (patch)
tree4bde6b0746ec9180b413fae083f5dbac56194a59
parentc4a40482c2ad9c9ab0b6839fc1f77b119edc785a (diff)
downloadorg.eclipse.etrice-7554a3d167df4ff70473e9b80576238b6ce38d6f.tar.gz
org.eclipse.etrice-7554a3d167df4ff70473e9b80576238b6ce38d6f.tar.xz
org.eclipse.etrice-7554a3d167df4ff70473e9b80576238b6ce38d6f.zip
[expression.ui] fixed PortClass
-rw-r--r--plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/DetailExpressionProvider.xtend11
1 files changed, 6 insertions, 5 deletions
diff --git a/plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/DetailExpressionProvider.xtend b/plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/DetailExpressionProvider.xtend
index e6c6ab3f8..e38b02ce1 100644
--- a/plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/DetailExpressionProvider.xtend
+++ b/plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/DetailExpressionProvider.xtend
@@ -119,15 +119,16 @@ class DetailExpressionProvider implements IDetailExpressionProvider {
elementScope += cls.allAttributes.map[createExprFeature]
initialFsmExpression(owner, cls, elementScope)
}
- PortClass: {
- // TODO operations
- // TODO inherited attributes
- elementScope += cls.attributes.map[createExprFeature]
- }
DataClass: {
elementScope += cls.latestOperations.map[createExprFeature]
elementScope += cls.allAttributes.map[createExprFeature]
}
+ case owner.isInContainment(PortClass): {
+ val portClass = owner.getContainerOfType(PortClass)
+ // TODO inheritance
+ elementScope += portClass.operations.map[createExprFeature]
+ elementScope += portClass.attributes.map[createExprFeature]
+ }
}
}

Back to the top