| org.netbeans.spi.project.libraries.LibraryTypeProvider
LibraryTypeProvider | public interface LibraryTypeProvider extends Lookup.Provider(Code) | | SPI interface for provider of library type.
The LibraryTypeProvider is responsible for creating new libraries of given type
and for supplying the customizers of library's volumes.
|
Method Summary | |
public LibraryImplementation | createLibrary() Creates a new empty library implementation. | public Customizer | getCustomizer(String volumeType) Returns customizer for given volume's type, or null if the volume is not customizable. | public String | getDisplayName() Returns the UI name of the LibraryType. | public String | getLibraryType() Get a unique identifier for the library type. | public String[] | getSupportedVolumeTypes() Get identifiers for the volume types supported by the libraries created by this provider. | public void | libraryCreated(LibraryImplementation libraryImpl) This method is called by the libraries framework when the library was created
and fully initialized (all its properties have to be read).
If the LibraryTypeProvider implementation requires initialization of
additional settings (e.g. | public void | libraryDeleted(LibraryImplementation libraryImpl) This method is called by the libraries framework when the library was deleted.
If the LibraryTypeProvider implementation requires clean of
additional settings (e.g. |
createLibrary | public LibraryImplementation createLibrary()(Code) | | Creates a new empty library implementation.
Generally will use
LibrariesSupport.createLibraryImplementation .
This method is not used by
LibraryManager.createLibrary except in the case of
LibraryManager.getDefault .
the created library model, never null |
getCustomizer | public Customizer getCustomizer(String volumeType)(Code) | | Returns customizer for given volume's type, or null if the volume is not customizable.
The object of the LibraryImplementation type and optionally LibraryStorageArea type is
passed to the customizer's setObject method.
The customized object describes the library created by this
provider, but the customizer cannot assume that the customized
object is of the same type as the object created by
LibraryTypeProvider.createLibrary .
Parameters: volumeType - a type of volume listed in LibraryTypeProvider.getSupportedVolumeTypes a customizer (must extend javax.swing.JComponent) or null if suchcustomizer doesn't exist. |
getDisplayName | public String getDisplayName()(Code) | | Returns the UI name of the LibraryType.
This name is used in the UI while the libraryType is used as a system
identifier.
String the display name |
getLibraryType | public String getLibraryType()(Code) | | Get a unique identifier for the library type.
For example, j2se .
the unique library type identifier, never null |
getSupportedVolumeTypes | public String[] getSupportedVolumeTypes()(Code) | | Get identifiers for the volume types supported by the libraries created by this provider.
For example, classpath , javadoc , or src .
support volume type identifiers, never null, may be an empty array. |
libraryCreated | public void libraryCreated(LibraryImplementation libraryImpl)(Code) | | This method is called by the libraries framework when the library was created
and fully initialized (all its properties have to be read).
If the LibraryTypeProvider implementation requires initialization of
additional settings (e.g. adding properties into the build.properties)
it should be done in this method.
This method is not used by
LibraryManager.createLibrary except in the case of
LibraryManager.getDefault .
|
libraryDeleted | public void libraryDeleted(LibraryImplementation libraryImpl)(Code) | | This method is called by the libraries framework when the library was deleted.
If the LibraryTypeProvider implementation requires clean of
additional settings (e.g. remove properties in the build.properties)
it should be done in this method.
This method is not used by
LibraryManager.createLibrary except in the case of
LibraryManager.getDefault .
Parameters: libraryImpl - |
|
|