I am working on a generator for my DSL. I've created a utility class 'GeneratorUtils' in a model 'util' and added it as a dependency to my generator, like the documentation has recommended: "Create a new model inside the generator. Make sure it does not have the generator stereotype attached to it. The model should typically depend on BaseLanguage so that you can create classes in it. The original generator model should then import the utility model.") I also followed the "Generator User Guide Demo5", where a utility class is used in a post-processing script.
In my generator, I want to use methods from GeneratorUtils in a macro, such as 'GeneratorUtils.method()'. But after rebuilding my language I receive compilation errors:
"The import of generator.util.GeneratorUtils cannot be resolved."
Is it not possible to use a utility class in a macro or why does it not work?
I hope someone can help me. Thanks!