org.netbeans.api.project.libraries
Interface LibraryChooser.LibraryImportHandler
- Enclosing class:
- LibraryChooser
public static interface LibraryChooser.LibraryImportHandler
Handler for library importing. The handler is used from library chooser
UI in order to import global library to sharable libraries location. A
library is only imported if there is no library with the same library
name in destination library manager.
Method Summary |
Library |
importLibrary(Library library)
Implementation is expected to copy given global library to
sharable libraries location, that is to library manager the library
chooser was created for. |
importLibrary
Library importLibrary(Library library)
throws IOException
- Implementation is expected to copy given global library to
sharable libraries location, that is to library manager the library
chooser was created for.
- Parameters:
library
- library to copy
- Returns:
- newly created library
- Throws:
IOException
- any IO failure
IllegalArgumentException
- if there already exists library
with this name