moduleBuilder vs moduleType

已回答

Perhaps I missed something. I see plugins seeming to achieve the same thing but in two different ways, but i'm not clear on which to use and why.

Eg. a plugin using a moduleType declaration in plugin.xml versus a moduleBuilder.

Seems extra code if I declare a moduleType?

0

Indeed, use com.intellij.moduleType and return builder from com.intellij.openapi.module.ModuleType#createModuleBuilder

0

Yann Cebron yes, but is one "better" over the other long-term from an API point of view?

0

请先登录再写评论。