I'm writing a plugin that will add a custom group to the right clik -> New window. I want it to be a collection of file templates, so that instead of going New -> Java class -> select template from dropdown I would be able to go New -> myCustomGroup -> fooTemplate (so no dropdowns and no mixing of my custom templates with others).
So far I've been able to add a custom group and my actions to it, but I don't know how to open the new file from template Action, with a specific template already selected.
Is there an easy way to call the already exisitng action with a specific template name? I think the action is called "From Template". Even knowing how to call a generic new file action would be helpfull.