Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/expressions/ValueExpression.qvto')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/expressions/ValueExpression.qvto15
1 files changed, 15 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/expressions/ValueExpression.qvto b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/expressions/ValueExpression.qvto
new file mode 100644
index 000000000..15a65f053
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/expressions/ValueExpression.qvto
@@ -0,0 +1,15 @@
+modeltype genModel uses "http://www.eclipse.org/gmf/2008/GenModel";
+
+library ValueExpression;
+
+helper constraintFieldName(cb : genModel::GenCommonBase) : String {
+ return cb.getUniqueIdentifier() + '_Constraint'
+}
+
+helper sourceConstraintFieldName(l : genModel::GenLink) : String {
+ return l.getUniqueIdentifier() + '_SourceExpression'
+}
+
+helper targetConstraintFieldName(l : genModel::GenLink) : String {
+ return l.getUniqueIdentifier() + '_TargetExpression'
+}

Back to the top