It's not an intended use of TextGen, therefore there's no legitimate mechanism to call textgen from a generator. If you could tell us more about your scenario, perhaps we could come up with an alternative.
If you utterly need to use TextGen, you could opt to use low-level Java APIs to invoke TextGen from within you code.
It's not an intended use of TextGen, therefore there's no legitimate mechanism to call textgen from a generator. If you could tell us more about your scenario, perhaps we could come up with an alternative.
If you utterly need to use TextGen, you could opt to use low-level Java APIs to invoke TextGen from within you code.
@arja555, did you consider using plaintextgen: https://plugins.jetbrains.com/plugin/8444-com-dslfoundry-plaintextgen
As Tikhomirov Artem said, I use the following code,
RegularTextUnit rtu = new RegularTextUnit(mySnode, "dummy");
rtu.generate();
byte[] bytes = rtu.getBytes();
string outCome = new String(bytes);