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???
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