From 2509f974a54b094c5cfad611217ff38a3ab26ed7 Mon Sep 17 00:00:00 2001 From: Simon Wegendt Date: Fri, 29 Nov 2019 17:12:21 +0100 Subject: [PATCH] whoops --- .../src/org/eclipse/mita/program/generator/GeneratorUtils.xtend | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bundles/org.eclipse.mita.program/src/org/eclipse/mita/program/generator/GeneratorUtils.xtend b/bundles/org.eclipse.mita.program/src/org/eclipse/mita/program/generator/GeneratorUtils.xtend index 0ab30474..25d4c300 100644 --- a/bundles/org.eclipse.mita.program/src/org/eclipse/mita/program/generator/GeneratorUtils.xtend +++ b/bundles/org.eclipse.mita.program/src/org/eclipse/mita/program/generator/GeneratorUtils.xtend @@ -206,7 +206,7 @@ class GeneratorUtils { if(program !== null) { // count event handlers, so we get unique names val occurrence = (event.eContainer as Program).eventHandlers.filter[it.event.baseName == event.event.baseName].indexed.filter[it.value === event].head.key + 1; - return '''HandleEvery«event.baseName»_«occurence»'''; + return '''HandleEvery«event.baseName»_«occurrence»'''; } // if we are somehow not a child of program, default to no numbering return '''HandleEvery«event.baseName»''';