So, apart from playing with that a bit and adding it to a (brand new!) tutorial that will describe all of this, I asked him how he registered these code templates. That's something I've never done. It turns out that you simply need to create an XML file that conforms to the EditorCodeTemplates-1_0.dtd. Then, drop that in the MIME type's layer folder in Editors/MIME-type/CodeTemplates. And then you're done! Here you see Girish's XML file and also where he put it in the Java MIME type's CodeTemplates folder:
Wow, that's easy. Now I can create others, stick them in a module, and distribute them to whoever wants them. In particular, registering code templates is a small yet powerful thing in support of some other larger feature, such as the JAXB tooling that Girish is working on. So... let's now all go out there and create some cool new code templates!