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
- How to create a context sensitive action. The action is only activated for Maven-based module nodes. It uses
com.intellij.openapi.actionSystem.DataContext
andcom.intellij.openapi.module.ModuleUtil
- How to add an project specific option panel including "for current project" indicator - see
projectConfigurable
in theplugin.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 theplugin.xml
- How to register a file template. See
fileTemplateGroup
inplugin.xml
andresources/fileTemplates.j2ee
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
Apache 2.0