Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/NonNLSUtils.qvto')
-rw-r--r--plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/NonNLSUtils.qvto21
1 files changed, 21 insertions, 0 deletions
diff --git a/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/NonNLSUtils.qvto b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/NonNLSUtils.qvto
new file mode 100644
index 000000000..cd397dc70
--- /dev/null
+++ b/plugins/org.eclipse.gmf.codegen/templates.migrated/xpt/NonNLSUtils.qvto
@@ -0,0 +1,21 @@
+library NonNLSUtils;
+
+property counter : Sequence(Integer) = Sequence{};
+
+helper incrementNonNLSCounter() : OclVoid {
+ counter := counter->including(counter->size() + 1);
+ return null
+}
+
+helper resetNonNLSCounter() : OclVoid {
+ counter := Sequence { };
+ return null
+}
+
+helper getNonNLSCounter() : Sequence(Integer) {
+ return counter;
+}
+
+helper getNonNLSCounter(collection : Collection(OclAny)) : Sequence(Integer) {
+ return collection->iterate(element : OclAny; acc : Sequence(Integer) = Sequence{} | acc->including(acc->size() + 1))
+} \ No newline at end of file

Back to the top