| org.netbeans.spi.project.libraries.ArealLibraryProvider
ArealLibraryProvider | public interface ArealLibraryProvider (Code) | | Library provider which can define libraries in particular areas.
There is no explicit method to save a library; setters on
LibraryImplementation should do this.
Parameters: A - the type of storage area used by this provider Parameters: L - the type of library created by this provider since: org.netbeans.modules.project.libraries/1 1.15 |
areaType | Class<A> areaType()(Code) | | Gets the runtime type of the area used by this provider.
the area type |
createArea | A createArea()(Code) | | Creates or otherwise picks a storage area interactively.
This might actually create a fresh area, or just load an existing one,
or even do nothing (and return null).
The implementor is free to show a dialog here.
a new or existing storage area, or null |
getLibraries | LibraryProvider<L> getLibraries(A area)(Code) | | Gets all libraries defined in a given area.
No two libraries in this area may share a given name (as in
LibraryImplementation.getName ,
though it is permitted for libraries from different areas to have the same name.
Changes in the set of libraries defined in this area should be fired through
LibraryProvider.PROP_LIBRARIES .
Since
IOException is not thrown either from this method or from
LibraryProvider.getLibraries ,
it is expected that any problems loading library definitions will be logged and that those libraries will be skipped.
Parameters: area - some storage area (which might not even exist yet, in which case the set of libraries will initially be empty) a listenable set of libraries in this area(it is permitted to return distinct objects from call to call on the same area,i.e. no caching by the implementation is necessary) |
getOpenAreas | Set<A> getOpenAreas()(Code) | | Looks for areas which should be somehow listed as open.
For example, a provider which refers to library areas from project metadata
could list all areas referred to from currently open projects.
It is not necessary to include areas recently mentioned e.g. by
ArealLibraryProvider.createArea .
a (possibly empty) collection of areas |
libraryType | Class<L> libraryType()(Code) | | Gets the runtime type of the libraries created by this provider.
the library type |
loadArea | A loadArea(URL location)(Code) | | Loads a storage area (which may or may exist yet).
Parameters: location - an abstract storage location which may or may not be recognized by this provider an area whose LibraryStorageArea.getLocation matches the provided location,or null if this type of location is not recognized by this provider |
remove | void remove(L library) throws IOException(Code) | | Deletes an existing library.
Parameters: library - a library produced by this provider throws: IOException - if a problem can encountered deleting the library definition |
|
|