Adding a module-level library to a module programatically

hi .. there is a thread that describes this for project-level libraries.
how is this done for module-level libraries.

thanks in advance

christian koestlin


1 comment

actually i found a way to add libraries to a module on module-level.
RootManager.getModifiableModel().getModuleLibraryTable() allows to create
new Librares as
usual. After committing of the modifiable models everything seems to be in
the place.
The only strange thing is, that the icon of the programatically generated
libraries is a little bit different than that of the clicked ones. Looking
into the .iml file the generated libraries have a name-attribute at the library
tag, whereas the clicked ones dont have this attribute.
Now i still have two questions:
How do i create exactly the same style of libraries programatically???
Is the different icon (the additional attribute) a problem???

thanks in advance

christian koestlin


0

Please sign in to leave a comment.