IDEA: How to “create a file from a file template”-plugin…

AtĀ https://github.com/markiewb/idea-create-from-template-plugin you will find an IDEA plugin, which shows you some APIs in action:

  • How to add an action to the context menu
  • How to create a context sensitive action. The action is only activated for Maven-based module nodes.
  • How to add an option panel – see projectConfigurable in the plugin.xml
  • How to register and use a project based settings service. See projectService in the plugin.xml
  • How to register a file template. See fileTemplateGroup in plugin.xml and resources/fileTemplates.j2ee