org.netbeans.modules.project.libraries/1 1.29.1

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.
 

Method Detail

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

org.netbeans.modules.project.libraries/1 1.29.1

Built on December 5 2011.  |  Portions Copyright 1997-2011 Sun Microsystems, Inc. All rights reserved.