Open danieldietrich opened 13 years ago
Added convinient way to set output paths.
Just import GeneratorExtensions:
import static extension net.danieldietrich.protectedregions.xtext.GeneratorExtensions.*
and then...
fsa.setOutputPaths(
"xpr-gen1" -> "./xpr-gen1",
"xpr-gen2" -> "./xpr-gen2"
)
(ProtectedRegionInMemoryFileSystemAccess needs dirs ending with '/')
A generator extension for Protected Regions Support (PRS) should support the developer in the following way:
salt.id
will becomesome.voodoo.magic.with.salt
«protected(id).java»
will become/*PROTECTED REGION ID(id) ENABLED START*/
«protected(id,false).java»
will become/*PROTECTED REGION ID(id) START*/
«protected.java»
will become/*PROTECTED REGION END*/
«protected(id).xml»
will become<!-- PROTECTED REGION ID(id) ENABLED START -->
«protected.xml»
will become<!-- PROTECTED REGION END -->
«generated(id).java»
will become/*GENERATED ID(id) ENABLED START*/
«generated(id,false).java»
will become/*GENERATED ID(id) START*/
«generated.java»
will become/*GENERATED END*/