An open API service indexing awesome lists of open source software.

https://github.com/markiewb/idea-create-from-template-plugin


https://github.com/markiewb/idea-create-from-template-plugin

intellij jrebel plugin sample template velocity

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

          

# Intellij IDEA "create from template" plugin

This plugin is the draft for an inhouse-plugin for our company to generate application specific rebel.xml files.

It adds an actions to several context menus to create a rebel.xml file based on a velocity template.

It shows the usage some IDEA APIs:
* How to add an action to the context menu of
1. Module in "Project" window via `
2. Maven Module in "Maven Projects" window via `
3. Files/Changelists in "Local Changes" window via `
* How to create a context sensitive action. The action is only activated for Maven-based module nodes. It uses `com.intellij.openapi.actionSystem.DataContext` and `com.intellij.openapi.module.ModuleUtil`
* How to add an project specific option panel including "for current project" indicator - see ```projectConfigurable``` in the ```plugin.xml```
* Documentation: https://sites.google.com/site/malenkov/java/150403
* Some related issues: https://youtrack.jetbrains.com/issue/IDEA-167520 https://youtrack.jetbrains.com/issue/IDEA-169713
* 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```

## Updates
1.3: Add action to context menu of files/changelists in "Local Changes" window
1.2: Add action to context menu of Maven modules in "Maven Projects" window (+ Refactor to use VIRTUAL_FILE_ARRAY to get com.intellij.openapi.module.Module)
1.1: Make settings per project type and enable the "for current project" indicator in the settings

## License
Apache 2.0