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
- Host: GitHub
- URL: https://github.com/markiewb/idea-create-from-template-plugin
- Owner: markiewb
- License: apache-2.0
- Created: 2017-01-23T23:03:00.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-15T23:58:40.000Z (about 9 years ago)
- Last Synced: 2025-08-23T17:43:52.292Z (9 months ago)
- Topics: intellij, jrebel, plugin, sample, template, velocity
- Language: Java
- Size: 246 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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