I've never modified module settings from OpenAPI, but using CtrlShiftN search for "addModule" I see ModulesConfigurator.addModule(ModuleBuilder) which looks like it provides at least a starting point.
Andrei Oprea wrote:
Hi there,
Is it possible to programatically (from inside a plugin) add/remove modules to/from a project? If yes, how would one do it?
I've never modified module settings from OpenAPI, but using CtrlShiftN search
for "addModule" I see ModulesConfigurator.addModule(ModuleBuilder) which looks
like it provides at least a starting point.
Andrei Oprea wrote:
ModuleManager.getInstance(project).newModule/loadModule/disposeModule
-
Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"