Add/remove modules from a project

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?

Thx,
Andrei


2 comments

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?

Thx,
Andrei

0

ModuleManager.getInstance(project).newModule/loadModule/disposeModule

-


Maxim Shafirov
http://www.jetbrains.com
"Develop with pleasure!"


0

Please sign in to leave a comment.