Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.modules.project.libraries/1 1.13.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.netbeans.api.project.libraries
Class LibraryManager

    java.lang.Object
      org.netbeans.api.project.libraries.LibraryManager

    public final class LibraryManager

extends Object

LibraryManager provides registry of the installed libraries. LibraryManager can be used to list all installed libraries or to query library by its system name.

Field Summary
`static String` | `PROP_LIBRARIES`

Method Summary
`void` | `addPropertyChangeListener(PropertyChangeListener listener)` Adds PropertyChangeListener.
`static LibraryManager` | `getDefault()` Get the default instance of the library manager.
`Library[]` | `getLibraries()` List all library defined in the IDE.
`Library` | `getLibrary(String name)` Returns library by its name.
`void` | `removePropertyChangeListener(PropertyChangeListener listener)` Removes PropertyChangeListener

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Field Detail

### PROP_LIBRARIES

    public static final String PROP_LIBRARIES

See Also:
  Constant Field Values

Method Detail

### getLibrary

    public Library getLibrary(String name)

  Returns library by its name.

  Parameters:
    `name` - of the library, must not be null
  Returns:
    library or null if the library is not found

### getLibraries

    public Library[] getLibraries()

  List all library defined in the IDE.

  Returns:
    Library[] library definitions never `null`

### addPropertyChangeListener

    public void addPropertyChangeListener(PropertyChangeListener listener)

  Adds PropertyChangeListener. The listener is notified when library is added or removed.

  Parameters:
    `listener` - to be notified

### removePropertyChangeListener

    public void removePropertyChangeListener(PropertyChangeListener listener)

  Removes PropertyChangeListener

  Parameters:
    `listener` -

### getDefault

    public static LibraryManager getDefault()

  Get the default instance of the library manager.

  Returns:
    the singleton instance

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.netbeans.modules.project.libraries/1 1.13.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.