Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/RuntimeDetailExpressionProvider.xtend')
-rw-r--r--plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/RuntimeDetailExpressionProvider.xtend51
1 files changed, 0 insertions, 51 deletions
diff --git a/plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/RuntimeDetailExpressionProvider.xtend b/plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/RuntimeDetailExpressionProvider.xtend
deleted file mode 100644
index 101e1ad8e..000000000
--- a/plugins/org.eclipse.etrice.expressions.ui/src/org/eclipse/etrice/expressions/detailcode/RuntimeDetailExpressionProvider.xtend
+++ /dev/null
@@ -1,51 +0,0 @@
-package org.eclipse.etrice.expressions.detailcode
-
-import org.eclipse.emf.ecore.EObject
-import org.eclipse.etrice.core.room.InterfaceItem
-import org.eclipse.etrice.core.room.Port
-import org.eclipse.etrice.core.room.SPP
-import org.eclipse.xtend.lib.annotations.Accessors
-import org.eclipse.xtend.lib.annotations.FinalFieldsConstructor
-
-/**
- * Defines expression that does not have an model representation. Extends {@link DefaultDetailExpressionProvider}
- */
-@FinalFieldsConstructor
-class RuntimeDetailExpressionProvider extends DefaultDetailExpressionProvider {
-
- public static val RT_METHOD_GET_REPLICATION = "getReplication"
-
- @Accessors
- static class RuntimeMethodExpressionData {
- //val String methodName
- //EObject eObj
- }
-
- override getContextFeatures(ExpressionFeature ctx) {
- val scope = super.getContextFeatures(ctx)
-
- switch obj : ctx.data {
- InterfaceItem: {
- if (ctx.postfix == ExpressionPostfix.NONE) {
- switch obj {
- Port case obj.replicated/* fall through */,
- SPP: {
- // not supported yet by code translation
- //scope += createRtMethodExprFeature(RT_METHOD_GET_REPLICATION, obj)
- }
- }
- }
- }
- }
-
- return scope.filterNull.filter[id !== null].toList
- }
-
- protected def createRtMethodExprFeature(String methodName, EObject eObj) {
- val feature = new ExpressionFeature(methodName, ExpressionPostfix.PARENTHESES)
- feature.data = new RuntimeMethodExpressionData()
-
- return feature
- }
-
-}

Back to the top