File -> new product... | new module... -> new type
Hi, I am new to plugin development so pls be kind ;)
I have read and watched several sites and videos, but non of them helps me understand what I need to do.
I want to create a plugin that gives me a new project/module type listed when I click this: File -> new product... | new module...
I have come so far that (I think) I need to extend ModuleType and add it to the plugin.xml
<extensions defaultExtensionNs="com.intellij">
<moduleType id=“MY_MODULE" implementationClass=“com.mydomain.ide.module.MyModuleType"/>
I also tried to add a ModuleConfigurationEditorProvider
<moduleConfigurationEditorProvider
implementation=“com.mydomain.ide.MyModuleConfigurationEditorProvider"/>
But I can’t get it to be shown in the new project dialog.
Is there some where a bare minimun solution I can look at, a simple tutorial perhaps or anyone that can help me?
请先登录再写评论。
DevKit plugin has custom module type, see org.jetbrains.idea.devkit.module.PluginModuleType and related.
Thanks, do you know any open source plugin that uses that?
DevKit plugin is part of IntelliJ IDEA Community Edition, so the source is available under Apache2 license
https://github.com/JetBrains/intellij-community/tree/master/plugins/devkit