Will we be allowed to use custom generated file names?

Hello

At the moment, DefaultFileGenerator generates file name using the name of the output node; the only thing we're allowed to override is the file extension. In some cases, we would need to transform node name (e.g. when node is named using CamelCase and coding standards assume that words in file name should be separated by underscores). So, could you shed the light on if (or when) this will be allowed?

2 comments
Comment actions Permalink

Hello, Konstantin,

Using DefaultFileGenerator isn't a right way to generate files. It's implementation detail which can be changed.

If you want to create a custom text generator, I recomment you to use gtext language. This language allows you to generate an arbitrary text files which names you can specify. If you need example, take a look at jetbrains.mps.xml language's generator.

0
Comment actions Permalink

Thank you for your fast answer.

I think, 'File Generator' should be marked as deprecated / internal in the plugin menu to avoid such confusion? (Similar to FileGeneratorPlugin)

0

Please sign in to leave a comment.